From b924eb45f1dee85b1366b202f7e8435069893d0f Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Sun, 5 Jun 2011 20:43:04 +0200 Subject: T60: fix touchpad option Code used 'int' as return type, but the cmos option is only one bit. get_option returned with the value in bit 0-7, but all remaining bits were left unitialized by get_option(). fix this by using char as type. Change-Id: I60e609164277380f936f66c99ef9508fa6a6b67c Signed-off-by: Sven Schnelle Reviewed-on: http://review.coreboot.org/5 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/mainboard/lenovo/t60/mainboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainboard/lenovo') diff --git a/src/mainboard/lenovo/t60/mainboard.c b/src/mainboard/lenovo/t60/mainboard.c index d6321d25d1..d2ee2fab4e 100644 --- a/src/mainboard/lenovo/t60/mainboard.c +++ b/src/mainboard/lenovo/t60/mainboard.c @@ -39,7 +39,7 @@ static void mainboard_enable(device_t dev) { device_t dev0, idedev; - int touchpad; + u8 touchpad; /* enable Audio */ h8_set_audio_mute(0); -- cgit v1.2.3