drm/i915/bios: return drm_edid_product_id from get_lvds_pnp_id()
Use a more suitable type to avoid the cast. Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Acked-by: Melissa Wen <mwen@igalia.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/4dc7bfc48e65d29829843941a70c8bf97b87abcc.1712655867.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
@ -593,7 +593,7 @@ get_lvds_fp_timing(const struct bdb_lvds_lfp_data *data,
|
|||||||
return (const void *)data + ptrs->ptr[index].fp_timing.offset;
|
return (const void *)data + ptrs->ptr[index].fp_timing.offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct lvds_pnp_id *
|
static const struct drm_edid_product_id *
|
||||||
get_lvds_pnp_id(const struct bdb_lvds_lfp_data *data,
|
get_lvds_pnp_id(const struct bdb_lvds_lfp_data *data,
|
||||||
const struct bdb_lvds_lfp_data_ptrs *ptrs,
|
const struct bdb_lvds_lfp_data_ptrs *ptrs,
|
||||||
int index)
|
int index)
|
||||||
@ -677,7 +677,7 @@ static int pnpid_get_panel_type(struct drm_i915_private *i915,
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
for (i = 0; i < 16; i++) {
|
for (i = 0; i < 16; i++) {
|
||||||
const struct lvds_pnp_id *vbt_id =
|
const struct drm_edid_product_id *vbt_id =
|
||||||
get_lvds_pnp_id(data, ptrs, i);
|
get_lvds_pnp_id(data, ptrs, i);
|
||||||
|
|
||||||
/* full match? */
|
/* full match? */
|
||||||
@ -875,7 +875,7 @@ parse_lfp_data(struct drm_i915_private *i915,
|
|||||||
const struct bdb_lvds_lfp_data *data;
|
const struct bdb_lvds_lfp_data *data;
|
||||||
const struct bdb_lvds_lfp_data_tail *tail;
|
const struct bdb_lvds_lfp_data_tail *tail;
|
||||||
const struct bdb_lvds_lfp_data_ptrs *ptrs;
|
const struct bdb_lvds_lfp_data_ptrs *ptrs;
|
||||||
const struct lvds_pnp_id *pnp_id;
|
const struct drm_edid_product_id *pnp_id;
|
||||||
struct drm_printer p;
|
struct drm_printer p;
|
||||||
int panel_type = panel->vbt.panel_type;
|
int panel_type = panel->vbt.panel_type;
|
||||||
|
|
||||||
@ -893,7 +893,7 @@ parse_lfp_data(struct drm_i915_private *i915,
|
|||||||
pnp_id = get_lvds_pnp_id(data, ptrs, panel_type);
|
pnp_id = get_lvds_pnp_id(data, ptrs, panel_type);
|
||||||
|
|
||||||
p = drm_dbg_printer(&i915->drm, DRM_UT_KMS, "Panel");
|
p = drm_dbg_printer(&i915->drm, DRM_UT_KMS, "Panel");
|
||||||
drm_edid_print_product_id(&p, (const struct drm_edid_product_id *)pnp_id, false);
|
drm_edid_print_product_id(&p, pnp_id, false);
|
||||||
|
|
||||||
tail = get_lfp_data_tail(data, ptrs);
|
tail = get_lfp_data_tail(data, ptrs);
|
||||||
if (!tail)
|
if (!tail)
|
||||||
|
Reference in New Issue
Block a user