OSDN Git Service

regulator: rt5033: Use linear ranges to map all voltage selection
authorChiYuan Huang <cy_huang@richtek.com>
Tue, 6 Jul 2021 06:45:39 +0000 (14:45 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 11 Jul 2021 22:50:39 +0000 (23:50 +0100)
commit6eb891cf73bd2ecc877e9916951a19f3e4f3c493
treec3eef9f2e5a12a13aea32b864e15560cb94dcd93
parente301df76472cc929fa62d923bc3892931f7ad71d
regulator: rt5033: Use linear ranges to map all voltage selection

Instead of linear mapping, Use linear range to map all voltage selection.

Signed-off-by: ChiYuan Huang <cy_huang@richtek.com>
Reviewed-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/1625553939-9109-1-git-send-email-u0084500@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rt5033-regulator.c
include/linux/mfd/rt5033-private.h