Chris Packham d95da99338 gpiolib: Preserve desc->flags when setting state
desc->flags may already have values set by of_gpiochip_add() so make
sure that this isn't undone when setting the initial direction.

Cc: stable@vger.kernel.org
Fixes: 3edfb7bd76bd1cba ("gpiolib: Show correct direction from the beginning")
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20190707203558.10993-1-chris.packham@alliedtelesis.co.nz
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2019-07-29 00:57:39 +02:00
..
2018-12-14 14:27:41 +01:00
2019-06-26 09:40:33 +02:00
2019-06-27 15:56:50 +01:00
2019-07-16 11:12:14 +02:00
2019-07-16 12:21:41 -07:00
2019-07-15 20:18:40 -07:00
2019-06-14 10:16:15 +02:00