[PATCH 1/4] drm/edid: rename drm_do_probe_ddc_edid -> ddc_read_block
Jani Nikula
jani.nikula at intel.com
Tue Dec 12 16:55:13 UTC 2023
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
drivers/gpu/drm/drm_edid.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index 69c68804023f..0353e2b614c6 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -2126,7 +2126,7 @@ static struct edid *edid_filter_invalid_blocks(struct edid *edid,
#define DDC_SEGMENT_ADDR 0x30
/**
- * drm_do_probe_ddc_edid() - get EDID information via I2C
+ * ddc_read_block() - get EDID information via I2C
* @data: I2C device adapter
* @buf: EDID data buffer to be filled
* @block: 128 byte EDID block to start fetching from
@@ -2137,7 +2137,7 @@ static struct edid *edid_filter_invalid_blocks(struct edid *edid,
* Return: 0 on success or -1 on failure.
*/
static int
-drm_do_probe_ddc_edid(void *data, u8 *buf, unsigned int block, size_t len)
+ddc_read_block(void *data, u8 *buf, unsigned int block, size_t len)
{
struct i2c_adapter *adapter = data;
unsigned char start = block * EDID_LENGTH;
@@ -2612,7 +2612,7 @@ drm_probe_ddc(struct i2c_adapter *adapter)
{
unsigned char out;
- return (drm_do_probe_ddc_edid(adapter, &out, 0, 1) == 0);
+ return ddc_read_block(adapter, &out, 0, 1) == 0;
}
EXPORT_SYMBOL(drm_probe_ddc);
@@ -2637,7 +2637,7 @@ struct edid *drm_get_edid(struct drm_connector *connector,
if (connector->force == DRM_FORCE_UNSPECIFIED && !drm_probe_ddc(adapter))
return NULL;
- edid = _drm_do_get_edid(connector, drm_do_probe_ddc_edid, adapter, NULL);
+ edid = _drm_do_get_edid(connector, ddc_read_block, adapter, NULL);
drm_connector_update_edid_property(connector, edid);
return edid;
}
@@ -2718,7 +2718,7 @@ const struct drm_edid *drm_edid_read_ddc(struct drm_connector *connector,
if (connector->force == DRM_FORCE_UNSPECIFIED && !drm_probe_ddc(adapter))
return NULL;
- drm_edid = drm_edid_read_custom(connector, drm_do_probe_ddc_edid, adapter);
+ drm_edid = drm_edid_read_custom(connector, ddc_read_block, adapter);
/* Note: Do *not* call connector updates here. */
@@ -2808,7 +2808,7 @@ u32 drm_edid_get_panel_id(struct i2c_adapter *adapter)
if (!base_block)
return 0;
- status = edid_block_read(base_block, 0, drm_do_probe_ddc_edid, adapter);
+ status = edid_block_read(base_block, 0, ddc_read_block, adapter);
edid_block_status_print(status, base_block, 0);
--
2.39.2
More information about the Intel-gfx-trybot
mailing list