OF: gpio: don't warn if ignored GPIO flag matches the behavior
Port of the upstream accepted change to the Linux kernel.

Some devicetrees specify the ACTIVE_LOW flag in the fixed regulator GPIO
handle. While this has always been ignored, it's consistent with the
behavior of the regulator binding in the absence of the
"enable-active-high" DT property. It doesn't make much sense to print a
user visible warning for a configuration which is consistent, so only
print the warning if the GPIO flag contradicts the behavior dictated by
by the enable-active-high property.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8d6da64 commit 660041ba309268c3f5404da4ae1b7eba201f4c4c
@Lucas Stach Lucas Stach authored on 30 Oct 2019
Sascha Hauer committed on 4 Nov 2019
Showing 1 changed file
View
drivers/of/of_gpio.c