summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2011-06-05 20:43:04 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2011-06-07 12:50:42 +0200
commitb924eb45f1dee85b1366b202f7e8435069893d0f (patch)
tree4fcfa27d5c791614172fc1acc189aeb1cf39abe6 /src
parent44c1d3111b4c0873ddb459ba832cdfcb20a7437a (diff)
downloadcoreboot-b924eb45f1dee85b1366b202f7e8435069893d0f.tar.xz
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 <svens@stackframe.org> Reviewed-on: http://review.coreboot.org/5 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/lenovo/t60/mainboard.c2
1 files changed, 1 insertions, 1 deletions
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);