diff options
author | Simon Ser <simon.ser@intel.com> | 2019-07-19 14:01:13 +0300 |
---|---|---|
committer | Simon Ser <simon.ser@intel.com> | 2019-08-15 13:03:59 +0300 |
commit | 7b759f271519af74afa4f2f1d85e64cf367644dc (patch) | |
tree | 18069c65b26afd3c624b043a918e98eef252745c /lib/igt_edid.h | |
parent | 8a7b044493e8dcdd7df02a124ea14daf95752cec (diff) |
lib/igt_kms: drop EDID_LENGTH, replace with EDID_BLOCK_SIZE
EDID_LENGTH is misleading because EDIDs are a variable size (they contain one
or more 128-byte EDID blocks). This commit renames it to EDID_BLOCK_SIZE which
makes it clear users need to call edid_get_size to get the total size.
The declaration has also been moved to igt_edid.
("Size" has been chosen over "length" because it's clearer that it's a number
of bytes, not a number of elements)
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, 2 insertions, 0 deletions
diff --git a/lib/igt_edid.h b/lib/igt_edid.h index 606541ac..319ccc3d 100644 --- a/lib/igt_edid.h +++ b/lib/igt_edid.h @@ -32,6 +32,8 @@ #include <xf86drmMode.h> +#define EDID_BLOCK_SIZE 128 + /** * est_timings: set of established timings */ |