Blame view
include/linux/w1-gpio.h
493 Bytes
d2912cb15
|
1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
ad8dc96e3
|
2 3 4 5 |
/* * w1-gpio interface to platform code * * Copyright (C) 2007 Ville Syrjala <syrjala@sci.fi> |
ad8dc96e3
|
6 7 8 |
*/ #ifndef _LINUX_W1_GPIO_H #define _LINUX_W1_GPIO_H |
e0fc62a65
|
9 |
struct gpio_desc; |
ad8dc96e3
|
10 11 |
/** * struct w1_gpio_platform_data - Platform-dependent data for w1-gpio |
ad8dc96e3
|
12 13 |
*/ struct w1_gpio_platform_data { |
e0fc62a65
|
14 15 |
struct gpio_desc *gpiod; struct gpio_desc *pullup_gpiod; |
c8a06c1ef
|
16 |
void (*enable_external_pullup)(int enable); |
3089a4c8d
|
17 |
unsigned int pullup_duration; |
ad8dc96e3
|
18 19 20 |
}; #endif /* _LINUX_W1_GPIO_H */ |