Skip to content
Commit 228fc010 authored by Lucas Stach's avatar Lucas Stach Committed by Bartosz Golaszewski
Browse files

gpio: of: don't warn if ignored GPIO flag matches the behavior



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: default avatarLucas Stach <l.stach@pengutronix.de>
[Bartosz: coding style tweak]
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent ac4062aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment