From a4c8bbbc289e4f853b52ce9fe604079038e644cc Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Mon, 20 Jul 2015 15:17:09 +0200 Subject: input: twl4030: Keypad scan and input This allows scanning the twl4030 keypad, storing the result in a 64-byte long matrix with the twl4030_keypad_scan function. Detecting a key at a given column and row is made easier with the twl4030_keypad_key function. Signed-off-by: Paul Kocialkowski Reviewed-by: Tom Rini --- include/twl4030.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/twl4030.h') diff --git a/include/twl4030.h b/include/twl4030.h index a4d5fbdb61..103137372d 100644 --- a/include/twl4030.h +++ b/include/twl4030.h @@ -683,6 +683,9 @@ int twl4030_input_power_button(void); int twl4030_input_charger(void); int twl4030_input_usb(void); +int twl4030_keypad_scan(unsigned char *matrix); +int twl4030_keypad_key(unsigned char *matrix, u8 c, u8 r); + /* * LED */ -- cgit v1.2.1