aboutsummaryrefslogtreecommitdiff
path: root/drivers/regulator/slg51000-regulator.c
AgeCommit message (Collapse)AuthorFilesLines
2019-05-24regulator: slg51000: Remove unneeded regl_pdata from struct slg51000Gravatar Axel Lin 1-11/+6
Just use a local variable *ena_gpiod in slg51000_of_parse_cb instead. With this change, the struct slg51000_pdata can be removed. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
2019-05-24regulator: slg51000: Constify slg51000_regl_ops and slg51000_switch_opsGravatar Axel Lin 1-2/+2
These regulator_ops variables never need to be modified, make them const so compiler can put them to .rodata. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
2019-05-13regulator: slg51000: add slg51000 regulator driverGravatar Eric Jeong 1-0/+528
Adding regulator driver for the device Dialog SLG51000. The SLG51000 device contains seven compact and customizable low dropout regulators and is designed for high performance camera modules and other small multi-rail applications. Signed-off-by: Eric Jeong <eric.jeong.opensource@diasemi.com> Signed-off-by: Mark Brown <broonie@kernel.org>