Skip to content
Commit d95da993 authored by Chris Packham's avatar Chris Packham Committed by Linus Walleij
Browse files

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: 3edfb7bd ("gpiolib: Show correct direction from the beginning")
Signed-off-by: default avatarChris Packham <chris.packham@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20190707203558.10993-1-chris.packham@alliedtelesis.co.nz


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 238644ce
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment