summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndrew Davis <afd@ti.com>2024-06-10 08:53:13 -0500
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-06-11 22:06:27 +0200
commit3ff1180a39fbc43ae69d4238e6922c57e3278910 (patch)
treef87621626e941a127fb3ad4d5e3ff04e07b7d04d /drivers
parent413427153921ac8263d3a516bfbdaa42fa058085 (diff)
downloadlinux-next-3ff1180a39fbc43ae69d4238e6922c57e3278910.tar.gz
linux-next-3ff1180a39fbc43ae69d4238e6922c57e3278910.zip
gpiolib: Remove data-less gpiochip_add() function
GPIO chips should be added with driver-private data associated with the chip. If none is needed, NULL can be used. All users already do this except one, fix that here. With no more users of the base gpiochip_add() we can drop this function so no more users show up later. Signed-off-by: Andrew Davis <afd@ti.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20240610135313.142571-1-afd@ti.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/greybus/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c
index 2a115a8fc263..5217aacfcf54 100644
--- a/drivers/staging/greybus/gpio.c
+++ b/drivers/staging/greybus/gpio.c
@@ -579,7 +579,7 @@ static int gb_gpio_probe(struct gbphy_device *gbphy_dev,
if (ret)
goto exit_line_free;
- ret = gpiochip_add(gpio);
+ ret = gpiochip_add_data(gpio, NULL);
if (ret) {
dev_err(&gbphy_dev->dev, "failed to add gpio chip: %d\n", ret);
goto exit_line_free;