diff options
author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2019-01-03 17:54:48 +0100 |
---|---|---|
committer | Antonio Argenziano <antonio.argenziano@intel.com> | 2019-01-14 10:55:04 -0800 |
commit | 8cb8fd13d592d9821c59eb321b1766725f9d1b37 (patch) | |
tree | 726f0e0158cf0e8c0eae192efff3ea637b7a81cb /lib | |
parent | c3aef507e1dfe1e483787d501e9907dab67f6bca (diff) |
lib/igt_edid_template: Fix parenthesis for vertical pulse coding
Add missing parenthesis in the macro coding the vertical pulse high
bits. Without them, the shift takes precedence over the logical and
operation, which is not how these bits should be coded according to
the spec.
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_edid_template.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_edid_template.h b/lib/igt_edid_template.h index de421e08..8dbd19ca 100644 --- a/lib/igt_edid_template.h +++ b/lib/igt_edid_template.h @@ -8,7 +8,7 @@ #define op(ho, hp, vo, vp) ((ho) & 0xff), ((hp) & 0xff), \ (((vo) & 0xf) << 4) | ((vp) & 0xf), \ (((ho) & 0x300) >> 2) | (((hp) & 0x300) >> 4) \ - | (((vo) & 0x30) >> 2) | ((vp) & 0x30 >> 4) + | (((vo) & 0x30) >> 2) | (((vp) & 0x30) >> 4) static unsigned char EDID_NAME[EDID_LENGTH] = { 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, /* header */ |