27
27
* struct gpio_extcon_platform_data - A simple GPIO-controlled extcon device.
28
* @name The name of this GPIO extcon device.
29
* @gpio Corresponding GPIO.
30
* @debounce Debounce time for GPIO IRQ in ms.
31
* @irq_flags IRQ Flags (e.g., IRQF_TRIGGER_LOW).
32
* @state_on print_state is overriden with state_on if attached. If Null,
33
* default method of extcon class is used.
34
* @state_off print_state is overriden with state_on if detached. If Null,
35
* default method of extcon class is used.
28
* @name: The name of this GPIO extcon device.
29
* @gpio: Corresponding GPIO.
30
* @gpio_active_low: Boolean describing whether gpio active state is 1 or 0
31
* If true, low state of gpio means active.
32
* If false, high state of gpio means active.
33
* @debounce: Debounce time for GPIO IRQ in ms.
34
* @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_on if detached.
38
* If NUll, default method of extcon class is used.
37
40
* Note that in order for state_on or state_off to be valid, both state_on
38
41
* and state_off should be not NULL. If at least one of them is NULL,