]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - include/linux/w1-gpio.h
mm: memcontrol: convert NR_ANON_THPS account to pages
[mirror_ubuntu-jammy-kernel.git] / include / linux / w1-gpio.h
CommitLineData
d2912cb1 1/* SPDX-License-Identifier: GPL-2.0-only */
ad8dc96e
VS
2/*
3 * w1-gpio interface to platform code
4 *
5 * Copyright (C) 2007 Ville Syrjala <syrjala@sci.fi>
ad8dc96e
VS
6 */
7#ifndef _LINUX_W1_GPIO_H
8#define _LINUX_W1_GPIO_H
9
e0fc62a6
LW
10struct gpio_desc;
11
ad8dc96e
VS
12/**
13 * struct w1_gpio_platform_data - Platform-dependent data for w1-gpio
ad8dc96e
VS
14 */
15struct w1_gpio_platform_data {
e0fc62a6
LW
16 struct gpio_desc *gpiod;
17 struct gpio_desc *pullup_gpiod;
c8a06c1e 18 void (*enable_external_pullup)(int enable);
3089a4c8 19 unsigned int pullup_duration;
ad8dc96e
VS
20};
21
22#endif /* _LINUX_W1_GPIO_H */