summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-12-04 23:05:21 +0100
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-12-07 14:28:35 +0100
commit9c0a5b3f9e55cf9a3dc85843666cae28adfdf7e3 (patch)
treed9ce0997265c6effdfc7fda9a4bee7cf60e44bae /include
parent271c81935801d6449bb7bab5ccfc6cd38238c62b (diff)
downloadlwn-9c0a5b3f9e55cf9a3dc85843666cae28adfdf7e3.tar.gz
lwn-9c0a5b3f9e55cf9a3dc85843666cae28adfdf7e3.zip
w1: gpio: Don't use platform data for driver data
struct device's .platform_data isn't for drivers to write to. For driver-specific data there is .driver_data instead. As there is no in-tree platform that provides w1_gpio_platform_data, drop the include file and replace it by a local struct w1_gpio_ddata. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/8f7ebe03ddaa5a5c6e2b36fecdf59da7fc373527.1701727212.git.u.kleine-koenig@pengutronix.de Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/w1-gpio.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/include/linux/w1-gpio.h b/include/linux/w1-gpio.h
deleted file mode 100644
index 3495fd0dc790..000000000000
--- a/include/linux/w1-gpio.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-/*
- * w1-gpio interface to platform code
- *
- * Copyright (C) 2007 Ville Syrjala <syrjala@sci.fi>
- */
-#ifndef _LINUX_W1_GPIO_H
-#define _LINUX_W1_GPIO_H
-
-struct gpio_desc;
-
-/**
- * struct w1_gpio_platform_data - Platform-dependent data for w1-gpio
- */
-struct w1_gpio_platform_data {
- struct gpio_desc *gpiod;
- struct gpio_desc *pullup_gpiod;
- void (*enable_external_pullup)(int enable);
- unsigned int pullup_duration;
-};
-
-#endif /* _LINUX_W1_GPIO_H */