}
-static u8 *drm_find_displayid_extension(const struct edid *edid, int *idx)
+static u8 *drm_find_displayid_extension(const struct edid *edid,
+ int *length, int *idx)
{
u8 *displayid = drm_find_edid_extension(edid, DISPLAYID_EXT);
if (!displayid)
return NULL;
+ *length = EDID_LENGTH;
*idx = 1;
return displayid;
static u8 *drm_find_cea_extension(const struct edid *edid)
{
int ret;
- int idx;
- int length = EDID_LENGTH;
+ int length, idx;
struct displayid_block *block;
u8 *cea;
u8 *displayid;
return cea;
/* CEA blocks can also be found embedded in a DisplayID block */
- displayid = drm_find_displayid_extension(edid, &idx);
+ displayid = drm_find_displayid_extension(edid, &length, &idx);
if (!displayid)
return NULL;
{
u8 *displayid;
int ret;
- int idx;
- int length = EDID_LENGTH;
+ int length, idx;
struct displayid_block *block;
int num_modes = 0;
- displayid = drm_find_displayid_extension(edid, &idx);
+ displayid = drm_find_displayid_extension(edid, &length, &idx);
if (!displayid)
return 0;
struct edid *edid)
{
void *displayid = NULL;
- int idx;
+ int length, idx;
int ret;
connector->has_tile = false;
- displayid = drm_find_displayid_extension(edid, &idx);
+ displayid = drm_find_displayid_extension(edid, &length, &idx);
if (!displayid) {
/* drop reference to any tile group we had */
goto out_drop_ref;
}
- ret = drm_parse_display_id(connector, displayid, EDID_LENGTH, idx);
+ ret = drm_parse_display_id(connector, displayid, length, idx);
if (ret < 0)
goto out_drop_ref;
if (!connector->has_tile)