lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20240307130927.581176-1-ayushdevel1325@gmail.com>
Date: Thu,  7 Mar 2024 18:39:26 +0530
From: Ayush Singh <ayushdevel1325@...il.com>
To: linux-doc@...r.kernel.org
Cc: Ayush Singh <ayushdevel1325@...il.com>,
	linux-kernel@...r.kernel.org,
	krzysztof.kozlowski@...aro.org,
	corbet@....net,
	Randy Dunlap <rdunlap@...radead.org>
Subject: [PATCH v3] 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")

Signed-off-by: Ayush Singh <ayushdevel1325@...il.com>
Reviewed-by: Randy Dunlap <rdunlap@...radead.org>
---
Changes in v3:
- Also remove uses foo_w1_gpio_pdata

Changes in v2: https://marc.info/?l=linux-doc&m=170980615205254&w=2
- Replace mailing list link with commit id

---
 Documentation/w1/masters/w1-gpio.rst | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/Documentation/w1/masters/w1-gpio.rst b/Documentation/w1/masters/w1-gpio.rst
index 15236605503b..a00b00da0049 100644
--- a/Documentation/w1/masters/w1-gpio.rst
+++ b/Documentation/w1/masters/w1-gpio.rst
@@ -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,18 +29,11 @@ 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,
   };
 
   ...
-	at91_set_GPIO_periph(foo_w1_gpio_pdata.pin, 1);
-	at91_set_multi_drive(foo_w1_gpio_pdata.pin, 1);
 	gpiod_add_lookup_table(&foo_w1_gpiod_table);
 	platform_device_register(&foo_w1_device);
-- 
2.44.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ