android_kernel_xiaomi_sm8350/include/linux/mfd
Axel Lin b72f2d9e91 regulator: rt5033: Fix n_voltages settings for BUCK and LDO
[ Upstream commit 6549c46af8551b346bcc0b9043f93848319acd5c ]

For linear regulators, the n_voltages should be (max - min) / step + 1.

Buck voltage from 1v to 3V, per step 100mV, and vout mask is 0x1f.
If value is from 20 to 31, the voltage will all be fixed to 3V.
And LDO also, just vout range is different from 1.2v to 3v, step is the
same. If value is from 18 to 31, the voltage will also be fixed to 3v.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: ChiYuan Huang <cy_huang@richtek.com>
Link: https://lore.kernel.org/r/20210627080418.1718127-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-08-08 09:04:07 +02:00
..
abx500 power: supply: ab8500: Fix an old bug 2021-07-19 08:53:16 +02:00
arizona
da9052
da9055
da9062
da9063 mfd: da9063: Remove now unused platform_data 2019-08-12 08:40:59 +01:00
da9150
madera - Core Frameworks 2019-07-15 20:18:40 -07:00
mt6323
mt6397 mfd: mt6397: Add mutex include 2019-09-02 11:20:40 +01:00
pcf50633
samsung Merge branch 'regulator-5.3' into regulator-next 2019-07-04 17:34:32 +01:00
syscon
wm831x
wm8350
wm8994
88pm80x.h
88pm860x.h
aat2870.h mfd: aat2870: No need to check return value of debugfs_create functions 2019-08-12 07:27:40 +01:00
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
cros_ec.h mfd / platform: cros_ec: Reorganize platform and mfd includes 2019-09-02 11:33:42 +01:00
da8xx-cfgchip.h
da903x.h
davinci_voicecodec.h
db8500-prcmu.h
dbx500-prcmu.h
dln2.h
dm355evm_msp.h
ds1wm.h
ezx-pcap.h
hi655x-pmic.h
hi6421-pmic.h
htc-pasic3.h
imx25-tsadc.h
ingenic-tcu.h
intel_msic.h
intel_soc_pmic_bxtwc.h
intel_soc_pmic_mrfld.h mfd: Add support for Merrifield Basin Cove PMIC 2019-09-02 11:09:03 +01:00
intel_soc_pmic.h
ipaq-micro.h
janz.h
kempld.h
lm3533.h
lochnagar1_regs.h
lochnagar2_regs.h
lochnagar.h
lp873x.h
lp3943.h
lp8788-isink.h
lp8788.h
lp87565.h - Core Frameworks 2019-07-15 20:18:40 -07: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
mxs-lradc.h
palmas.h
qcom_rpm.h
rave-sp.h
rc5t583.h
rdc321x.h
retu.h
rk808.h mfd: rk808: Fix RK818 ID template 2019-12-17 19:56:49 +01:00
rn5t618.h
rohm-bd718x7.h
rohm-bd70528.h regulator: bd70528: Fix off-by-one for buck123 .n_voltages setting 2021-06-23 14:41:27 +02:00
rohm-generic.h
rt5033-private.h regulator: rt5033: Fix n_voltages settings for BUCK and LDO 2021-08-08 09:04:07 +02:00
rt5033.h
si476x-core.h
si476x-platform.h
si476x-reports.h
sky81452.h
smsc.h
sta2x11-mfd.h
stm32-lptimer.h
stm32-timers.h
stmfx.h mfd: stmfx: Disable IRQ in suspend to avoid spurious interrupt 2020-06-24 17:50:33 +02:00
stmpe.h
stpmic1.h
stw481x.h
sun4i-gpadc.h
syscon.h mfd/syscon: Add device_node_to_regmap() 2019-08-08 15:30:07 -07:00
t7l66xb.h
tc3589x.h
tc6387xb.h
tc6393xb.h
ti_am335x_tscadc.h
ti-lmu-register.h LED updates for 5.3-rc1 2019-07-09 08:59:39 -07:00
ti-lmu.h LED updates for 5.3-rc1 2019-07-09 08:59:39 -07:00
tmio.h
tps6105x.h
tps6507x.h
tps6586x.h
tps65010.h
tps65086.h
tps65090.h
tps65217.h
tps65218.h
tps65910.h
tps65912.h
tps68470.h
tps80031.h
twl4030-audio.h
twl6040.h
twl.h
ucb1x00.h
viperboard.h
wl1273-core.h
wm97xx.h
wm8400-audio.h
wm8400-private.h
wm8400.h