summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra
diff options
context:
space:
mode:
authorShridhar Rasal <srasal@nvidia.com>2012-02-03 09:27:30 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-02-03 09:29:06 +0100
commit023cea0ecfa2df034096c3f4afa796a0b2d1188a (patch)
tree5a17176ee7f8cfe276dc79c9d15601aebb47a73f /arch/arm/mach-tegra
parentInput: add Synaptics USB device driver (diff)
downloadlinux-023cea0ecfa2df034096c3f4afa796a0b2d1188a.tar.xz
linux-023cea0ecfa2df034096c3f4afa796a0b2d1188a.zip
Input: tegra-kbc - allow skipping setting up some of GPIO pins
Allow marking some of GPIO pins as ignored to to avoid continuously generating KBC input events. Signed-off-by: Shridhar Rasal <srasal@nvidia.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r--arch/arm/mach-tegra/include/mach/kbc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/include/mach/kbc.h b/arch/arm/mach-tegra/include/mach/kbc.h
index d34ecd1bea63..a13025612939 100644
--- a/arch/arm/mach-tegra/include/mach/kbc.h
+++ b/arch/arm/mach-tegra/include/mach/kbc.h
@@ -31,8 +31,14 @@
#define KBC_MAX_COL 8
#define KBC_MAX_KEY (KBC_MAX_ROW * KBC_MAX_COL)
+enum tegra_pin_type {
+ PIN_CFG_IGNORE,
+ PIN_CFG_COL,
+ PIN_CFG_ROW,
+};
+
struct tegra_kbc_pin_cfg {
- bool is_row;
+ enum tegra_pin_type type;
unsigned char num;
};