David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * w1-gpio interface to platform code |
| 4 | * |
| 5 | * Copyright (C) 2007 Ville Syrjala <syrjala@sci.fi> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 6 | */ |
| 7 | #ifndef _LINUX_W1_GPIO_H |
| 8 | #define _LINUX_W1_GPIO_H |
| 9 | |
| 10 | struct gpio_desc; |
| 11 | |
| 12 | /** |
| 13 | * struct w1_gpio_platform_data - Platform-dependent data for w1-gpio |
| 14 | */ |
| 15 | struct w1_gpio_platform_data { |
| 16 | struct gpio_desc *gpiod; |
| 17 | struct gpio_desc *pullup_gpiod; |
| 18 | void (*enable_external_pullup)(int enable); |
| 19 | unsigned int pullup_duration; |
| 20 | }; |
| 21 | |
| 22 | #endif /* _LINUX_W1_GPIO_H */ |