From e745d064b441dbf48eac4bc2c494263d54262dec Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 24 Nov 2014 13:47:13 +0100 Subject: edid: Add an edid_check_checksum() helper function Add a helper function to check the checksum of an EDID data block. Signed-off-by: Hans de Goede Acked-by: Anatolij Gustschin --- include/edid.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/edid.h') diff --git a/include/edid.h b/include/edid.h index d3cc5232de..a69f43a206 100644 --- a/include/edid.h +++ b/include/edid.h @@ -245,6 +245,15 @@ void edid_print_info(struct edid1_info *edid_info); */ int edid_check_info(struct edid1_info *info); +/** + * Check checksum of a 128 bytes EDID data block + * + * @param edid_block EDID block data + * + * @return 0 on success, or a negative errno on error + */ +int edid_check_checksum(u8 *edid_block); + /** * Get the horizontal and vertical rate ranges of the monitor. * -- cgit v1.2.1