blob: 3495fd0dc7900a0f833a57c3566174a35e634420 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Ville Syrjalaad8dc962008-02-06 01:39:01 -08002/*
3 * w1-gpio interface to platform code
4 *
5 * Copyright (C) 2007 Ville Syrjala <syrjala@sci.fi>
Ville Syrjalaad8dc962008-02-06 01:39:01 -08006 */
7#ifndef _LINUX_W1_GPIO_H
8#define _LINUX_W1_GPIO_H
9
Linus Walleije0fc62a2017-09-26 20:27:09 +020010struct gpio_desc;
11
Ville Syrjalaad8dc962008-02-06 01:39:01 -080012/**
13 * struct w1_gpio_platform_data - Platform-dependent data for w1-gpio
Ville Syrjalaad8dc962008-02-06 01:39:01 -080014 */
15struct w1_gpio_platform_data {
Linus Walleije0fc62a2017-09-26 20:27:09 +020016 struct gpio_desc *gpiod;
17 struct gpio_desc *pullup_gpiod;
Daniel Mackc8a06c12009-06-17 16:28:15 -070018 void (*enable_external_pullup)(int enable);
Evgeny Boger3089a4c2014-01-23 15:56:18 -080019 unsigned int pullup_duration;
Ville Syrjalaad8dc962008-02-06 01:39:01 -080020};
21
22#endif /* _LINUX_W1_GPIO_H */