gpio: mockup: fix indicated direction
authorBartosz Golaszewski <brgl@bgdev.pl>
Thu, 8 Nov 2018 16:52:53 +0000 (17:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Dec 2018 08:18:48 +0000 (09:18 +0100)
commit6c65ce92019b50861cd0b1763da8ea8217d6a420
treeeea2d53443a906e3f9390a79ffe87a447b973671
parent934f4965b46b99885e31b89fbf3240cb034c0959
gpio: mockup: fix indicated direction

[ Upstream commit bff466bac59994cfcceabe4d0be5fdc1c20cd5b8 ]

Commit 3edfb7bd76bd ("gpiolib: Show correct direction from the
beginning") fixed an existing issue but broke libgpiod tests by
changing the default direction of dummy lines to output.

We don't break user-space so make gpio-mockup behave as before.

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