aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/include/plat/keypad.h
diff options
context:
space:
mode:
authorJoonyoung Shim <jy0922.shim@samsung.com>2010-08-06 19:26:10 +0900
committerKukjin Kim <kgene.kim@samsung.com>2010-08-06 21:27:50 +0900
commit995c48adde09e04298036501df9dac87661fa66c (patch)
tree6c5bf7939dac0c6a5f233c6095ad2d68760606ca /arch/arm/plat-samsung/include/plat/keypad.h
parentMerge commit 'd01d0756f75e7a5b4b43764ad45b83c4340f11d6' into next-samsung (diff)
downloadlinux-dev-995c48adde09e04298036501df9dac87661fa66c.tar.xz
linux-dev-995c48adde09e04298036501df9dac87661fa66c.zip
ARM: SAMSUNG: Add keypad device support
This patch adds Samsung keypad device definition for Samsung SoCs. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/include/plat/keypad.h')
-rw-r--r--arch/arm/plat-samsung/include/plat/keypad.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/include/plat/keypad.h b/arch/arm/plat-samsung/include/plat/keypad.h
index 3a70c125fe51..b59a6483cd8a 100644
--- a/arch/arm/plat-samsung/include/plat/keypad.h
+++ b/arch/arm/plat-samsung/include/plat/keypad.h
@@ -40,4 +40,17 @@ struct samsung_keypad_platdata {
void (*cfg_gpio)(unsigned int rows, unsigned int cols);
};
+/**
+ * samsung_keypad_set_platdata - Set platform data for Samsung Keypad device.
+ * @pd: Platform data to register to device.
+ *
+ * Register the given platform data for use with Samsung Keypad device.
+ * The call will copy the platform data, so the board definitions can
+ * make the structure itself __initdata.
+ */
+extern void samsung_keypad_set_platdata(struct samsung_keypad_platdata *pd);
+
+/* defined by architecture to configure gpio. */
+extern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols);
+
#endif /* __PLAT_SAMSUNG_KEYPAD_H */