Skip to content

Commit 149a028

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
gpiolib: Remove unused of_mm_gpiochip_add()
of_mm_gpiochip_add() is unused API, remove it for good. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 9a7dcae commit 149a028

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

drivers/gpio/TODO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ Work items:
6161

6262
- Get rid of struct of_mm_gpio_chip altogether: use the generic MMIO
6363
GPIO for all current users (see below). Delete struct of_mm_gpio_chip,
64-
to_of_mm_gpio_chip(), of_mm_gpiochip_add_data(), of_mm_gpiochip_add()
65-
of_mm_gpiochip_remove() from the kernel.
64+
to_of_mm_gpio_chip(), of_mm_gpiochip_add_data(), of_mm_gpiochip_remove()
65+
from the kernel.
6666

6767
- Change all consumer drivers that #include <linux/of_gpio.h> to
6868
#include <linux/gpio/consumer.h> and stop doing custom parsing of the

include/linux/of_gpio.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ extern int of_get_named_gpio(const struct device_node *np,
5656
extern int of_mm_gpiochip_add_data(struct device_node *np,
5757
struct of_mm_gpio_chip *mm_gc,
5858
void *data);
59-
static inline int of_mm_gpiochip_add(struct device_node *np,
60-
struct of_mm_gpio_chip *mm_gc)
61-
{
62-
return of_mm_gpiochip_add_data(np, mm_gc, NULL);
63-
}
6459
extern void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc);
6560

6661
#else /* CONFIG_OF_GPIO */

0 commit comments

Comments
 (0)