gpio: mockup: Allow probing from device tree
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Thu, 29 Oct 2020 08:17:20 +0000 (09:17 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 29 Oct 2020 09:39:09 +0000 (10:39 +0100)
commit43ddebdd096638ef8cd2ec41d6acca3400069171
tree1bc632851884017cdad0c05a8156247dc3dc2314
parent11b3de087a1cae288f2cf345457bc7a7f97c7aa3
gpio: mockup: Allow probing from device tree

Allow the mockup driver to be probed via the device tree without any
module parameters, allowing it to be used to configure and test higher
level drivers like the leds-gpio driver and corresponding userspace
before actual hardware is available.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-mockup.c