blob: 3495fd0dc7900a0f833a57c3566174a35e634420 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * w1-gpio interface to platform code
4 *
5 * Copyright (C) 2007 Ville Syrjala <syrjala@sci.fi>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00006 */
7#ifndef _LINUX_W1_GPIO_H
8#define _LINUX_W1_GPIO_H
9
10struct gpio_desc;
11
12/**
13 * struct w1_gpio_platform_data - Platform-dependent data for w1-gpio
14 */
15struct 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 */