Skip to content

Commit 339be1a

Browse files
committed
drm/displayid: rename displayid_hdr to displayid_header
Avoid any confusion with High Dynamic Range. No functional changes. Reviewed-by: Ville Syrjälä <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/ce083bd2789c7e22a91710726162287db88e3f6c.1617024940.git.jani.nikula@intel.com
1 parent f72b143 commit 339be1a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

drivers/gpu/drm/drm_displayid.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ static int validate_displayid(const u8 *displayid, int length, int idx)
1111
{
1212
int i, dispid_length;
1313
u8 csum = 0;
14-
const struct displayid_hdr *base;
14+
const struct displayid_header *base;
1515

16-
base = (const struct displayid_hdr *)&displayid[idx];
16+
base = (const struct displayid_header *)&displayid[idx];
1717

1818
DRM_DEBUG_KMS("base revision 0x%x, length %d, %d %d\n",
1919
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,
3838
int *ext_index)
3939
{
4040
const u8 *displayid = drm_find_edid_extension(edid, DISPLAYID_EXT, ext_index);
41-
const struct displayid_hdr *base;
41+
const struct displayid_header *base;
4242
int ret;
4343

4444
if (!displayid)
@@ -52,7 +52,7 @@ static const u8 *drm_find_displayid_extension(const struct edid *edid,
5252
if (ret)
5353
return NULL;
5454

55-
base = (const struct displayid_hdr *)&displayid[*idx];
55+
base = (const struct displayid_header *)&displayid[*idx];
5656
*length = *idx + sizeof(*base) + base->bytes;
5757

5858
return displayid;
@@ -118,7 +118,7 @@ __displayid_iter_next(struct displayid_iter *iter)
118118
return NULL;
119119
}
120120

121-
iter->idx += sizeof(struct displayid_hdr);
121+
iter->idx += sizeof(struct displayid_header);
122122

123123
block = displayid_iter_block(iter);
124124
if (block)

include/drm/drm_displayid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct edid;
5656
#define PRODUCT_TYPE_REPEATER 5
5757
#define PRODUCT_TYPE_DIRECT_DRIVE 6
5858

59-
struct displayid_hdr {
59+
struct displayid_header {
6060
u8 rev;
6161
u8 bytes;
6262
u8 prod_id;

0 commit comments

Comments
 (0)