drivers: gpio: keep output value for input on sandbox
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 14 Sep 2020 10:50:55 +0000 (12:50 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 14 Oct 2020 15:16:34 +0000 (11:16 -0400)
commit7cd96a47281145aca4f9c8960a0a2e185b8bd70c
treeddbbed43a10c1a25a9c813cf6cc347e545b50524
parent39916bb45f9e233d6df8ee478c539b100116a34a
drivers: gpio: keep output value for input on sandbox

For testing purposes keep the output value when switching to input.
This allows us to manipulate the input value via the gpio command.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com>
drivers/gpio/sandbox.c