Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
extcon_gpio.h
Go to the documentation of this file.
1 /*
2  * External connector (extcon) class generic GPIO driver
3  *
4  * Copyright (C) 2012 Samsung Electronics
5  * Author: MyungJoo Ham <[email protected]>
6  *
7  * based on switch class driver
8  * Copyright (C) 2008 Google, Inc.
9  * Author: Mike Lockwood <[email protected]>
10  *
11  * This software is licensed under the terms of the GNU General Public
12  * License version 2, as published by the Free Software Foundation, and
13  * may be copied, distributed, and modified under those terms.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20 */
21 #ifndef __EXTCON_GPIO_H__
22 #define __EXTCON_GPIO_H__ __FILE__
23 
24 #include <linux/extcon.h>
25 
42  const char *name;
43  unsigned gpio;
44  unsigned long debounce;
45  unsigned long irq_flags;
46 
47  /* if NULL, "0" or "1" will be printed */
48  const char *state_on;
49  const char *state_off;
50 };
51 
52 #endif /* __EXTCON_GPIO_H__ */