]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mockup: pass the named_lines parameter over platform_data
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 27 Nov 2017 10:48:44 +0000 (11:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 2 Dec 2017 21:42:26 +0000 (22:42 +0100)
commit9a8e99c79954e9c524f13d92586f3956b29c3c88
tree5fd66941941d606f1f769a5356677126762a31db
parent9761271977f9d4144e890a7b5102dd56a1b9f5d4
gpio: mockup: pass the named_lines parameter over platform_data

Move the last bits of code dealing with module parameters to the init
function. Add a new variable to platform data, which indicates to the
probe function if it should name the GPIO lines. If we ever want to
make the line naming more fine-grained (e.g. per chip switch) it will
be easier this way.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mockup.c