Skip to content
Commit 886ab3da authored by Peter Korsgaard's avatar Peter Korsgaard Committed by Sascha Hauer
Browse files

mxc/gpio: make _set_value work with values != 0/1



Documentation/gpio.txt specifies that the value argument to
gpio_set_value() should be handled as a boolean (E.G. != 0 is high),
so use the same logic as in _set_direction().

Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 9524705c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment