projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fcb8f5
)
s5pc210: universal: code cleanup for check_keypad()
author
Donghwa Lee
<dh09.lee@samsung.com>
Thu, 26 Aug 2010 00:28:16 +0000
(09:28 +0900)
committer
Donghwa Lee
<dh09.lee@samsung.com>
Thu, 26 Aug 2010 00:28:16 +0000
(09:28 +0900)
board/samsung/universal_c210/universal.c
patch
|
blob
|
history
diff --git
a/board/samsung/universal_c210/universal.c
b/board/samsung/universal_c210/universal.c
index
4298e53
..
5988c2c
100644
(file)
--- a/
board/samsung/universal_c210/universal.c
+++ b/
board/samsung/universal_c210/universal.c
@@
-228,13
+228,12
@@
static void check_keypad(void)
{
unsigned int val = 0;
unsigned int power_key, auto_download = 0;
- unsigned int base = S5PC210_GPIO_PART2_BASE;
- val =
(~readl(&gpio2->x2.dat) & (1 <<
1));
+ val =
~(gpio_get_value(&gpio2->x2,
1));
power_key = power_key_check();
- if (power_key && (val &
& 0x2
))
+ if (power_key && (val &
0x1
))
auto_download = 1;
if (auto_download)