regulator: of: add support for allowed modes configuration
authorDavid Collins <collinsd@codeaurora.org>
Sat, 12 May 2018 01:46:47 +0000 (18:46 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 17 May 2018 05:11:19 +0000 (14:11 +0900)
commit54557ad9737e28b06b632cce723ef2373fe6bf12
tree3c24811386ee5b8fd3a7b13310d4a1ad4f6bdc1c
parentd73e2842a3e236a1f58ba498e4d6ae58e18f660a
regulator: of: add support for allowed modes configuration

Add support for configuring the machine constraints
valid_modes_mask element based on a list of allowed modes
specified via a device tree property.

Signed-off-by: David Collins <collinsd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/of_regulator.c