[PATCH v1 1/1] gpio: legacy: Kill gpio_set_value_cansleep()

Andy Shevchenko <[email protected]>
Newsgroups dev.linux.lists.mfd,org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
No more users.

Signed-off-by: Andy Shevchenko <[email protected]>
---

As of today must go via MFD tree where last user of this API was
converted by the commit 62acd2babc1d ("mfd: si476x: Modernize GPIO handling")

 include/linux/gpio/legacy.h | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/include/linux/gpio/legacy.h b/include/linux/gpio/legacy.h
index d4273162ed13..1a6e46bc85a0 100644
--- a/include/linux/gpio/legacy.h
+++ b/include/linux/gpio/legacy.h
@@ -63,10 +63,6 @@ static inline int gpio_get_value_cansleep(unsigned gpio)
 {
 	return gpiod_get_raw_value_cansleep(gpio_to_desc(gpio));
 }
-static inline void gpio_set_value_cansleep(unsigned gpio, int value)
-{
-	gpiod_set_raw_value_cansleep(gpio_to_desc(gpio), value);
-}
 
 static inline int gpio_get_value(unsigned gpio)
 {
@@ -140,12 +136,6 @@ static inline int gpio_get_value_cansleep(unsigned gpio)
 	return 0;
 }
 
-static inline void gpio_set_value_cansleep(unsigned gpio, int value)
-{
-	/* GPIO can never have been requested or set as output */
-	WARN_ON(1);
-}
-
 static inline int gpio_to_irq(unsigned gpio)
 {
 	/* GPIO can never have been requested or set as input */
-- 
2.50.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.