aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/extcon/extcon-gpio.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-11-23 03:04:05 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-11-23 03:04:05 -0500
commit92907cbbef8625bb3998d1eb385fc88f23c97a3f (patch)
tree15626ff9287e37c3cb81c7286d6db5a7fd77c854 /include/linux/extcon/extcon-gpio.h
parent15fbfccfe92c62ae8d1ecc647c44157ed01ac02e (diff)
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff)
Merge tag 'v4.4-rc2' into drm-intel-next-queued
Linux 4.4-rc2 Backmerge to get at commit 1b0e3a049efe471c399674fd954500ce97438d30 Author: Imre Deak <imre.deak@intel.com> Date: Thu Nov 5 23:04:11 2015 +0200 drm/i915/skl: disable display side power well support for now so that we can proplery re-eanble skl power wells in -next. Conflicts are just adjacent lines changed, except for intel_fbdev.c where we need to interleave the changs. Nothing nefarious. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'include/linux/extcon/extcon-gpio.h')
-rw-r--r--include/linux/extcon/extcon-gpio.h24
1 files changed, 6 insertions, 18 deletions
diff --git a/include/linux/extcon/extcon-gpio.h b/include/linux/extcon/extcon-gpio.h
index 0b17ad43fbfc..7cacafb78b09 100644
--- a/include/linux/extcon/extcon-gpio.h
+++ b/include/linux/extcon/extcon-gpio.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * External connector (extcon) class generic GPIO driver 2 * Single-state GPIO extcon driver based on extcon class
3 * 3 *
4 * Copyright (C) 2012 Samsung Electronics 4 * Copyright (C) 2012 Samsung Electronics
5 * Author: MyungJoo Ham <myungjoo.ham@samsung.com> 5 * Author: MyungJoo Ham <myungjoo.ham@samsung.com>
@@ -16,43 +16,31 @@
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details. 18 * GNU General Public License for more details.
19 * 19 */
20*/
21#ifndef __EXTCON_GPIO_H__ 20#ifndef __EXTCON_GPIO_H__
22#define __EXTCON_GPIO_H__ __FILE__ 21#define __EXTCON_GPIO_H__ __FILE__
23 22
24#include <linux/extcon.h> 23#include <linux/extcon.h>
25 24
26/** 25/**
27 * struct gpio_extcon_platform_data - A simple GPIO-controlled extcon device. 26 * struct gpio_extcon_pdata - A simple GPIO-controlled extcon device.
28 * @name: The name of this GPIO extcon device. 27 * @extcon_id: The unique id of specific external connector.
29 * @gpio: Corresponding GPIO. 28 * @gpio: Corresponding GPIO.
30 * @gpio_active_low: Boolean describing whether gpio active state is 1 or 0 29 * @gpio_active_low: Boolean describing whether gpio active state is 1 or 0
31 * If true, low state of gpio means active. 30 * If true, low state of gpio means active.
32 * If false, high state of gpio means active. 31 * If false, high state of gpio means active.
33 * @debounce: Debounce time for GPIO IRQ in ms. 32 * @debounce: Debounce time for GPIO IRQ in ms.
34 * @irq_flags: IRQ Flags (e.g., IRQF_TRIGGER_LOW). 33 * @irq_flags: IRQ Flags (e.g., IRQF_TRIGGER_LOW).
35 * @state_on: print_state is overriden with state_on if attached.
36 * If NULL, default method of extcon class is used.
37 * @state_off: print_state is overriden with state_off if detached.
38 * If NUll, default method of extcon class is used.
39 * @check_on_resume: Boolean describing whether to check the state of gpio 34 * @check_on_resume: Boolean describing whether to check the state of gpio
40 * while resuming from sleep. 35 * while resuming from sleep.
41 *
42 * Note that in order for state_on or state_off to be valid, both state_on
43 * and state_off should be not NULL. If at least one of them is NULL,
44 * the print_state is not overriden.
45 */ 36 */
46struct gpio_extcon_platform_data { 37struct gpio_extcon_pdata {
47 const char *name; 38 unsigned int extcon_id;
48 unsigned gpio; 39 unsigned gpio;
49 bool gpio_active_low; 40 bool gpio_active_low;
50 unsigned long debounce; 41 unsigned long debounce;
51 unsigned long irq_flags; 42 unsigned long irq_flags;
52 43
53 /* if NULL, "0" or "1" will be printed */
54 const char *state_on;
55 const char *state_off;
56 bool check_on_resume; 44 bool check_on_resume;
57}; 45};
58 46