commit | 4a2398d7211f8f750b717ce4a2b0d117385f2a4a | [log] [tgz] |
---|---|---|
author | Linus Walleij <linus.walleij@linaro.org> | Wed Jun 27 10:52:07 2018 +0200 |
committer | Linus Walleij <linus.walleij@linaro.org> | Mon Jul 02 16:00:49 2018 +0200 |
tree | 9021ac59e3a8a9268c964ea14dee0f7acbf56683 | |
parent | f9e03b0ef10ce5040714783a09cf12df26bcb3d7 [diff] |
gpio: sch311x: Use RMW to change direction Bit 0 in the config register obviously controls the direction of the GPIO so instead of hammering 0x0/0x1 into that register, use read-modify-write so that we can also alter the other bits in the register. Cc: Bruno Randolf <br1@einfach.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>