linux-uconsole/include/linux/mfd
Matti Vaittinen 3604dfd1c6 regulator: bd718x7, bd71828, Fix dvs voltage levels
[ Upstream commit c294554111 ]

The ROHM BD718x7 and BD71828 drivers support setting HW state
specific voltages from device-tree. This is used also by various
in-tree DTS files.

These drivers do incorrectly try to compose bit-map using enum
values. By a chance this works for first two valid levels having
values 1 and 2 - but setting values for the rest of the levels
do indicate capability of setting values for first levels as
well. Luckily the regulators which support setting values for
SUSPEND/LPSR do usually also support setting values for RUN
and IDLE too - thus this has not been such a fatal issue.

Fix this by defining the old enum values as bits and fixing the
parsing code. This allows keeping existing IC specific drivers
intact and only slightly changing the rohm-regulator.c

Fixes: 21b72156ed ("regulator: bd718x7: Split driver to common and bd718x7 specific parts")
Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210212080023.GA880728@localhost.localdomain
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:38:07 +01:00
..
abx500
arizona
da9052
da9055
da9062
da9063
da9150
madera
mt6323
mt6358
mt6397 rtc: mt6397: Remove unused member dev 2020-10-15 12:01:29 +02:00
pcf50633
samsung
syscon
wcd934x
wm831x
wm8350
wm8994
88pm80x.h
88pm860x.h
aat2870.h
ab3100.h
abx500.h
ac100.h
adp5520.h
altera-a10sr.h
altera-sysmgr.h
as3711.h
as3722.h
asic3.h
atmel-hlcdc.h
axp20x.h
bcm590xx.h
bcm2835-pm.h
bd9571mwv.h
core.h
da8xx-cfgchip.h
da903x.h
davinci_voicecodec.h
db8500-prcmu.h
dbx500-prcmu.h
dln2.h
dm355evm_msp.h
ds1wm.h
ezx-pcap.h
gsc.h
hi655x-pmic.h
hi6421-pmic.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
hi6421-spmi-pmic.h staging: mfd: hi6421-spmi-pmic: get rid of interrupt properties 2020-08-18 17:05:14 +02:00
htc-pasic3.h
imx25-tsadc.h
ingenic-tcu.h
intel-m10-bmc.h mfd: intel-m10-bmc: Add Intel MAX 10 BMC chip support for Intel FPGA PAC 2020-09-30 17:46:21 +01:00
intel_msic.h
intel_pmc_bxt.h
intel_soc_pmic.h
intel_soc_pmic_bxtwc.h
intel_soc_pmic_mrfld.h
ipaq-micro.h
iqs62x.h
janz.h
kempld.h
khadas-mcu.h
lm3533.h
lochnagar.h
lochnagar1_regs.h
lochnagar2_regs.h
lp873x.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
lp3943.h
lp8788-isink.h
lp8788.h
lp87565.h mfd: lp87565: Add LP87524-Q1 variant 2020-09-30 16:25:29 +01:00
lpc_ich.h
max8907.h
max8925.h
max8997-private.h
max8997.h
max8998-private.h
max8998.h
max14577-private.h
max14577.h
max77620.h
max77650.h
max77686-private.h
max77686.h
max77693-common.h
max77693-private.h
max77693.h
max77843-private.h
mc13xxx.h
mc13783.h
mc13892.h
mcp.h
menelaus.h
motorola-cpcap.h
mp2629.h
mt6360.h
mxs-lradc.h
palmas.h
qcom_rpm.h
rave-sp.h
rc5t583.h
rdc321x.h
retu.h
rk808.h
rn5t618.h
rohm-bd718x7.h
rohm-bd70528.h
rohm-bd71828.h
rohm-generic.h regulator: bd718x7, bd71828, Fix dvs voltage levels 2021-03-04 11:38:07 +01:00
rohm-shared.h
rt5033-private.h
rt5033.h
sc27xx-pmic.h
si476x-core.h
si476x-platform.h
si476x-reports.h
sky81452.h
sta2x11-mfd.h
stm32-lptimer.h
stm32-timers.h
stmfx.h
stmpe.h
stpmic1.h
stw481x.h
sun4i-gpadc.h
syscon.h
t7l66xb.h
tc3589x.h gpio: tc35894: Disable Direct KBD interrupts to enable gpio irq 2020-09-09 11:33:07 +02:00
tc6387xb.h
tc6393xb.h
ti-lmu-register.h
ti-lmu.h
ti_am335x_tscadc.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
tmio.h
tps6105x.h
tps6507x.h
tps6586x.h
tps65010.h
tps65086.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
tps65090.h
tps65217.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
tps65218.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
tps65910.h
tps65912.h mfd: Replace HTTP links with HTTPS ones 2020-08-13 07:50:59 +01:00
tps68470.h
tps80031.h
twl.h
twl4030-audio.h
twl6040.h
ucb1x00.h
viperboard.h
wl1273-core.h
wm97xx.h
wm8400-audio.h
wm8400-private.h
wm8400.h