Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4 -4
+4 -4
drivers/gpu/drm/i915/display/intel_bios.c
··· 593 593 return (const void *)data + ptrs->ptr[index].fp_timing.offset; 594 594 } 595 595 596 - static const struct lvds_pnp_id * 596 + static const struct drm_edid_product_id * 597 597 get_lvds_pnp_id(const struct bdb_lvds_lfp_data *data, 598 598 const struct bdb_lvds_lfp_data_ptrs *ptrs, 599 599 int index) ··· 677 677 return -1; 678 678 679 679 for (i = 0; i < 16; i++) { 680 - const struct lvds_pnp_id *vbt_id = 680 + const struct drm_edid_product_id *vbt_id = 681 681 get_lvds_pnp_id(data, ptrs, i); 682 682 683 683 /* full match? */ ··· 875 875 const struct bdb_lvds_lfp_data *data; 876 876 const struct bdb_lvds_lfp_data_tail *tail; 877 877 const struct bdb_lvds_lfp_data_ptrs *ptrs; 878 - const struct lvds_pnp_id *pnp_id; 878 + const struct drm_edid_product_id *pnp_id; 879 879 struct drm_printer p; 880 880 int panel_type = panel->vbt.panel_type; 881 881 ··· 893 893 pnp_id = get_lvds_pnp_id(data, ptrs, panel_type); 894 894 895 895 p = drm_dbg_printer(&i915->drm, DRM_UT_KMS, "Panel"); 896 - drm_edid_print_product_id(&p, (const struct drm_edid_product_id *)pnp_id, false); 896 + drm_edid_print_product_id(&p, pnp_id, false); 897 897 898 898 tail = get_lfp_data_tail(data, ptrs); 899 899 if (!tail)