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

drm/displayid: rename displayid_hdr to displayid_header

Avoid any confusion with High Dynamic Range. No functional changes.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ce083bd2789c7e22a91710726162287db88e3f6c.1617024940.git.jani.nikula@intel.com

+6 -6
+5 -5
drivers/gpu/drm/drm_displayid.c
··· 11 11 { 12 12 int i, dispid_length; 13 13 u8 csum = 0; 14 - const struct displayid_hdr *base; 14 + const struct displayid_header *base; 15 15 16 - base = (const struct displayid_hdr *)&displayid[idx]; 16 + base = (const struct displayid_header *)&displayid[idx]; 17 17 18 18 DRM_DEBUG_KMS("base revision 0x%x, length %d, %d %d\n", 19 19 base->rev, base->bytes, base->prod_id, base->ext_count); ··· 38 38 int *ext_index) 39 39 { 40 40 const u8 *displayid = drm_find_edid_extension(edid, DISPLAYID_EXT, ext_index); 41 - const struct displayid_hdr *base; 41 + const struct displayid_header *base; 42 42 int ret; 43 43 44 44 if (!displayid) ··· 52 52 if (ret) 53 53 return NULL; 54 54 55 - base = (const struct displayid_hdr *)&displayid[*idx]; 55 + base = (const struct displayid_header *)&displayid[*idx]; 56 56 *length = *idx + sizeof(*base) + base->bytes; 57 57 58 58 return displayid; ··· 118 118 return NULL; 119 119 } 120 120 121 - iter->idx += sizeof(struct displayid_hdr); 121 + iter->idx += sizeof(struct displayid_header); 122 122 123 123 block = displayid_iter_block(iter); 124 124 if (block)
+1 -1
include/drm/drm_displayid.h
··· 56 56 #define PRODUCT_TYPE_REPEATER 5 57 57 #define PRODUCT_TYPE_DIRECT_DRIVE 6 58 58 59 - struct displayid_hdr { 59 + struct displayid_header { 60 60 u8 rev; 61 61 u8 bytes; 62 62 u8 prod_id;