summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-ftgpio010.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@codeconstruct.com.au>2022-10-24 16:08:28 +0800
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2022-10-25 09:54:47 +0200
commit6de0cb80e601df16f481a614daa0e84adbf0b552 (patch)
tree4824e14420e9d22170f797170054f438d15b3d7e /drivers/gpio/gpio-ftgpio010.c
parent99d18d42c942854a073191714a311dc2420ec7d3 (diff)
downloadlinux-stable-6de0cb80e601df16f481a614daa0e84adbf0b552.tar.gz
linux-stable-6de0cb80e601df16f481a614daa0e84adbf0b552.tar.bz2
linux-stable-6de0cb80e601df16f481a614daa0e84adbf0b552.zip
gpio: ftgpio010: use device name for gpiochip name & label
Currently, we use just the fixed string "FTGPIO010" as the gpiochip name for ftgpio010 drivers. Because it's fixed, this means we cannot distinguish multiple ftgpio010 devices present on a single system. This change uses the dev_name() instead, which should be unique between multiple instances. Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-ftgpio010.c')
-rw-r--r--drivers/gpio/gpio-ftgpio010.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-ftgpio010.c b/drivers/gpio/gpio-ftgpio010.c
index f77a965f5780..2728672ef9f8 100644
--- a/drivers/gpio/gpio-ftgpio010.c
+++ b/drivers/gpio/gpio-ftgpio010.c
@@ -277,7 +277,7 @@ static int ftgpio_gpio_probe(struct platform_device *pdev)
dev_err(dev, "unable to init generic GPIO\n");
goto dis_clk;
}
- g->gc.label = "FTGPIO010";
+ g->gc.label = dev_name(dev);
g->gc.base = -1;
g->gc.parent = dev;
g->gc.owner = THIS_MODULE;