gpio: sandbox: Make sandbox_gpio_set_flags() set all flags
authorSimon Glass <sjg@chromium.org>
Fri, 5 Feb 2021 04:22:02 +0000 (21:22 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 3 Mar 2021 20:38:58 +0000 (15:38 -0500)
commite87e86f31c54a4e49159dca7fbd6d9694efcd720
tree64f8b2ee2a6048c085f61a86dc77766003838e03
parent0242aecb4c40060d532b907e581f1bbd4c9ba9af
gpio: sandbox: Make sandbox_gpio_set_flags() set all flags

Allow this function to see all flags, including the internal sandbox ones.
This allows the tests to fully control the behaviour of the driver.

To make this work, move the setting of GPIOD_EXT_HIGH -to where the flags
are updated via driver model, rather than the sandbox 'back door'.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/gpio/sandbox.c