mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
99d18d42c9
commit
6de0cb80e6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue