1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * w1-gpio interface to platform code
4  *
5  * Copyright (C) 2007 Ville Syrjala <syrjala@sci.fi>
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 */
23