| commit | c5c767ace8fcd91004474609e6f278018c054f41 | [log] [tgz] |
|---|---|---|
| author | Nico Huber <nico.h@gmx.de> | Sun Jun 03 01:09:04 2018 +0200 |
| committer | Nico Huber <nico.h@gmx.de> | Wed Jun 13 17:31:27 2018 +0000 |
| tree | f096f184b6026e9dfe3ca8b7e79be46f42e0321a | |
| parent | da1185eea1dad41b9b15685cbe5eaaf352158d16 [diff] [blame] |
Use (Width|Height)_Type for modeline sizes Saves us a lot of conversions and explicit contracts. Change-Id: I32c06ca87b18c25e3c519fa608c4b9b36dbc0449 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/26849 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/common/hw-gfx-gma-pch-transcoder.adb b/common/hw-gfx-gma-pch-transcoder.adb index 29fbaf6..eb1715f 100644 --- a/common/hw-gfx-gma-pch-transcoder.adb +++ b/common/hw-gfx-gma-pch-transcoder.adb
@@ -153,7 +153,7 @@ is Mode : constant Mode_Type := Port_Cfg.Mode; - function Encode (LSW, MSW : Pos16) return Word32 is + function Encode (LSW, MSW : Pos32) return Word32 is begin return (Word32 (LSW) - 1) or ((Word32 (MSW) - 1) * 2 ** 16); end Encode;