diff options
Diffstat (limited to 'include/linux/w1-gpio.h')
-rw-r--r-- | include/linux/w1-gpio.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/w1-gpio.h b/include/linux/w1-gpio.h index d58594a32324..78901ecd2f95 100644 --- a/include/linux/w1-gpio.h +++ b/include/linux/w1-gpio.h | |||
@@ -10,16 +10,15 @@ | |||
10 | #ifndef _LINUX_W1_GPIO_H | 10 | #ifndef _LINUX_W1_GPIO_H |
11 | #define _LINUX_W1_GPIO_H | 11 | #define _LINUX_W1_GPIO_H |
12 | 12 | ||
13 | struct gpio_desc; | ||
14 | |||
13 | /** | 15 | /** |
14 | * struct w1_gpio_platform_data - Platform-dependent data for w1-gpio | 16 | * struct w1_gpio_platform_data - Platform-dependent data for w1-gpio |
15 | * @pin: GPIO pin to use | ||
16 | * @is_open_drain: GPIO pin is configured as open drain | ||
17 | */ | 17 | */ |
18 | struct w1_gpio_platform_data { | 18 | struct w1_gpio_platform_data { |
19 | unsigned int pin; | 19 | struct gpio_desc *gpiod; |
20 | unsigned int is_open_drain:1; | 20 | struct gpio_desc *pullup_gpiod; |
21 | void (*enable_external_pullup)(int enable); | 21 | void (*enable_external_pullup)(int enable); |
22 | unsigned int ext_pullup_enable_pin; | ||
23 | unsigned int pullup_duration; | 22 | unsigned int pullup_duration; |
24 | }; | 23 | }; |
25 | 24 | ||