~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/linux/extcon/extcon-gpio.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
/**
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.
36
39
 *
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,
41
44
struct gpio_extcon_platform_data {
42
45
        const char *name;
43
46
        unsigned gpio;
 
47
        bool gpio_active_low;
44
48
        unsigned long debounce;
45
49
        unsigned long irq_flags;
46
50