Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * tca6416 keypad platform support
0004  *
0005  * Copyright (C) 2010 Texas Instruments
0006  *
0007  * Author: Sriramakrishnan <srk@ti.com>
0008  */
0009 
0010 #ifndef _TCA6416_KEYS_H
0011 #define _TCA6416_KEYS_H
0012 
0013 #include <linux/types.h>
0014 
0015 struct tca6416_button {
0016     /* Configuration parameters */
0017     int code;       /* input event code (KEY_*, SW_*) */
0018     int active_low;
0019     int type;       /* input event type (EV_KEY, EV_SW) */
0020 };
0021 
0022 struct tca6416_keys_platform_data {
0023     struct tca6416_button *buttons;
0024     int nbuttons;
0025     unsigned int rep:1; /* enable input subsystem auto repeat */
0026     uint16_t pinmask;
0027     uint16_t invert;
0028     int irq_is_gpio;
0029     int use_polling;    /* use polling if Interrupt is not connected*/
0030 };
0031 #endif