diff options
author | Jani Nikula <jani.nikula@intel.com> | 2021-03-29 15:37:22 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2021-03-31 14:42:39 +0200 |
commit | 339be1a8e9af736e5e08924cd8da52d21621fe3d (patch) | |
tree | 4283a677a467b53bfba8705f0362d82798fbdb66 /drivers/gpu/drm/drm_displayid.c | |
parent | drm/displayid: allow data blocks with 0 payload length (diff) | |
download | linux-339be1a8e9af736e5e08924cd8da52d21621fe3d.tar.xz linux-339be1a8e9af736e5e08924cd8da52d21621fe3d.zip |
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
Diffstat (limited to 'drivers/gpu/drm/drm_displayid.c')
-rw-r--r-- | drivers/gpu/drm/drm_displayid.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_displayid.c b/drivers/gpu/drm/drm_displayid.c index e0b9e58a9dc8..32da557b960f 100644 --- a/drivers/gpu/drm/drm_displayid.c +++ b/drivers/gpu/drm/drm_displayid.c @@ -11,9 +11,9 @@ static int validate_displayid(const u8 *displayid, int length, int idx) { int i, dispid_length; u8 csum = 0; - const struct displayid_hdr *base; + const struct displayid_header *base; - base = (const struct displayid_hdr *)&displayid[idx]; + base = (const struct displayid_header *)&displayid[idx]; DRM_DEBUG_KMS("base revision 0x%x, length %d, %d %d\n", base->rev, base->bytes, base->prod_id, base->ext_count); @@ -38,7 +38,7 @@ static const u8 *drm_find_displayid_extension(const struct edid *edid, int *ext_index) { const u8 *displayid = drm_find_edid_extension(edid, DISPLAYID_EXT, ext_index); - const struct displayid_hdr *base; + const struct displayid_header *base; int ret; if (!displayid) @@ -52,7 +52,7 @@ static const u8 *drm_find_displayid_extension(const struct edid *edid, if (ret) return NULL; - base = (const struct displayid_hdr *)&displayid[*idx]; + base = (const struct displayid_header *)&displayid[*idx]; *length = *idx + sizeof(*base) + base->bytes; return displayid; @@ -118,7 +118,7 @@ __displayid_iter_next(struct displayid_iter *iter) return NULL; } - iter->idx += sizeof(struct displayid_hdr); + iter->idx += sizeof(struct displayid_header); block = displayid_iter_block(iter); if (block) |