Skip to contentSkip to conversation

docs: w1: Remove w1_gpio_platform_data

PATCH Superseded Ayush Singh 1 participant 1 message Mar 7, 2024

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 docs: w1: Remove w1_gpio_platform_data

linux/w1-gpio.h was removed in a previous patch and should no longer be needed for using w1 gpio.

Fixes 9c0a5b3f9e55 ("w1: gpio: Don't use platform data for driver data")
---
 Documentation/w1/masters/w1-gpio.rst | 6 ------
 1 file changed, 6 deletions(-)
Documentation/w1/masters/w1-gpio.rst +0 -6
index 15236605503b..5d7eebc291bb 100644
@@ -20,7 +20,6 @@ Example (mach-at91)
 ::
 
   #include <linux/gpio/machine.h>
-  #include <linux/w1-gpio.h>
 
   static struct gpiod_lookup_table foo_w1_gpiod_table = {
 	.dev_id = "w1-gpio",
@@ -30,14 +29,9 @@ Example (mach-at91)
 	},
   };
 
-  static struct w1_gpio_platform_data foo_w1_gpio_pdata = {
-	.ext_pullup_enable_pin	= -EINVAL,
-  };
-
   static struct platform_device foo_w1_device = {
 	.name			= "w1-gpio",
 	.id			= -1,
-	.dev.platform_data	= &foo_w1_gpio_pdata,
   };
 
   ...
Signature · 1 line
2.44.0