From be71ee5dec8f038cdd0e98efe93dadf0128d0f24 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 15 Dec 2014 22:52:14 +0100 Subject: edid: remove float use First, we don't want floats in our code base. Second, the calculation of the aspect ratio was wacky, using a value guaranteed to be 0 for aspect ratio calculation. While at it, define the aspect_* fields to be in tenths, to provide some additional resolution. They were like that already but we now also commit to that. Change-Id: I5511adf4bf76cdd6a69240491372f220ef1aa687 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/7803 Reviewed-by: Marc Jones Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) --- src/include/edid.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/edid.h') diff --git a/src/include/edid.h b/src/include/edid.h index 867a82ff28..9a1fda5d44 100644 --- a/src/include/edid.h +++ b/src/include/edid.h @@ -89,6 +89,7 @@ struct edid { u32 bytes_per_line; /* it is unlikely we need these things. */ /* if one of these is non-zero, use that one. */ + /* they're aspect * 10 to provide some additional resolution */ unsigned int aspect_landscape; unsigned int aspect_portrait; const char *range_class; -- cgit v1.2.3