diff options
author | Simon Ser <simon.ser@intel.com> | 2019-07-19 14:12:20 +0300 |
---|---|---|
committer | Simon Ser <simon.ser@intel.com> | 2019-08-15 13:04:03 +0300 |
commit | a092f546dae323a6b1e981501c4136a6b35afe92 (patch) | |
tree | d744ac5a32027eb8a1b621013d1f756e44b679a9 /lib/igt_edid.h | |
parent | 7b759f271519af74afa4f2f1d85e64cf367644dc (diff) |
lib/igt_edid: make HDMI VSDB data array unsigned
This array is filled manually, some bytes might have the MSB set.
This fixes the following warning:
../lib/igt_kms.c:357:18: warning: implicit conversion from 'int' to 'char' changes value from 128 to -128 [-Wconstant-conversion]
hdmi->data[0] = HDMI_VSDB_VIDEO_3D_PRESENT; /* HDMI video flags */
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Simon Ser <simon.ser@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'lib/igt_edid.h')
-rw-r--r-- | lib/igt_edid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_edid.h b/lib/igt_edid.h index 319ccc3dc..d256b7896 100644 --- a/lib/igt_edid.h +++ b/lib/igt_edid.h @@ -238,7 +238,7 @@ struct hdmi_vsdb { uint8_t flags1; /* enum hdmi_vsdb_flags1 */ uint8_t max_tdms_clock; /* multiply by 5MHz */ uint8_t flags2; /* enum hdmi_vsdb_flags2 */ - char data[]; /* latency, misc, VIC, 3D */ + uint8_t data[]; /* latency, misc, VIC, 3D */ } __attribute__((packed)); #define HDMI_VSDB_MIN_SIZE 2 /* just the source physical address */ |