]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: mockup: use device properties instead of platform_data
authorBartosz Golaszewski <brgl@bgdev.pl>
Tue, 25 Sep 2018 11:29:46 +0000 (13:29 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 3 Oct 2018 07:53:16 +0000 (09:53 +0200)
commit3ea47b447da0b8e93735612f2b0d128dba4d7524
treef56b115dcfa4201299990050bc8a5304da764585
parent90fd227029a25b452fd39dec6d557212d03d79b1
gpio: mockup: use device properties instead of platform_data

Some users want to introduce device tree support to the mockup driver.
Let's make it easier by switching to using generic device properties.
The driver stays compatible with previous use cases and after this
conversion there'll be no need to change the way probing of mockup
GPIO chips works.

Tested with libgpiod test suite.

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