aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/gpio.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
index 9fd3093d855a..20ca7663975f 100644
--- a/include/asm-generic/gpio.h
+++ b/include/asm-generic/gpio.h
@@ -57,6 +57,8 @@ struct device_node;
57 * enabling module power and clock; may sleep 57 * enabling module power and clock; may sleep
58 * @free: optional hook for chip-specific deactivation, such as 58 * @free: optional hook for chip-specific deactivation, such as
59 * disabling module power and clock; may sleep 59 * disabling module power and clock; may sleep
60 * @get_direction: returns direction for signal "offset", 0=out, 1=in,
61 * (same as GPIOF_DIR_XXX), or negative error
60 * @direction_input: configures signal "offset" as input, or returns error 62 * @direction_input: configures signal "offset" as input, or returns error
61 * @get: returns value for signal "offset"; for output signals this 63 * @get: returns value for signal "offset"; for output signals this
62 * returns either the value actually sensed, or zero 64 * returns either the value actually sensed, or zero
@@ -101,7 +103,8 @@ struct gpio_chip {
101 unsigned offset); 103 unsigned offset);
102 void (*free)(struct gpio_chip *chip, 104 void (*free)(struct gpio_chip *chip,
103 unsigned offset); 105 unsigned offset);
104 106 int (*get_direction)(struct gpio_chip *chip,
107 unsigned offset);
105 int (*direction_input)(struct gpio_chip *chip, 108 int (*direction_input)(struct gpio_chip *chip,
106 unsigned offset); 109 unsigned offset);
107 int (*get)(struct gpio_chip *chip, 110 int (*get)(struct gpio_chip *chip,