ext4: Remove redundant unlikely()
[zen-stable.git] / include / linux / tca6416_keypad.h
blob7bd266f3525cf5212a8d9f13e6127c1401812eed
1 /*
2 * tca6416 keypad platform support
4 * Copyright (C) 2010 Texas Instruments
6 * Author: Sriramakrishnan <srk@ti.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #ifndef _TCA6416_KEYS_H
14 #define _TCA6416_KEYS_H
16 #include <linux/types.h>
18 struct tca6416_button {
19 /* Configuration parameters */
20 int code; /* input event code (KEY_*, SW_*) */
21 int active_low;
22 int type; /* input event type (EV_KEY, EV_SW) */
25 struct tca6416_keys_platform_data {
26 struct tca6416_button *buttons;
27 int nbuttons;
28 unsigned int rep:1; /* enable input subsystem auto repeat */
29 uint16_t pinmask;
30 uint16_t invert;
31 int irq_is_gpio;
32 int use_polling; /* use polling if Interrupt is not connected*/
34 #endif