Skip to content
Unverified Commit efe9a6da authored by Rob Herring's avatar Rob Herring Committed by Mark Brown
Browse files

regulator: dt-bindings: gpio-regulator: Fix "gpios-states" and "states" array bounds



The minimum number of array entries for "gpios-states" was not not
specified, so the the default is the same as the max (8).

The minimum is also missing from "states", and the maximum is also wrong
as it should be 2^(# of GPIO lines). Since there can be 1 to 8 GPIOs,
the "states" range should be 2 to 256.

Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://msgid.link/r/20240224000752.3830665-1-robh@kernel.org


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b9262cc1
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