diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-04-14 15:48:18 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-15 11:45:15 +0300 |
commit | 0dceab33342d279130252b7c587142a7252a9324 (patch) | |
tree | 34f218da1ffa1f6e81b745417a9418bcf11a2b89 /drivers/regulator/mt6323-regulator.c | |
parent | 7d695f20c27f33173f2149d4d1c6e994e5c0b08e (diff) | |
download | linux-0dceab33342d279130252b7c587142a7252a9324.tar.xz |
regulator: max8998: Factor out struct voltage_map_desc
The struct voltage_map_desc is used for storing min/max/step fileds, and
then setup the min_uV, uV_step and n_voltages fields for regulator_desc.
Introduce MAX8998_LINEAR_REG/MAX8998_OTHERS_REG macro to setup these filds
directly in regulator_desc to simplify the code.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/mt6323-regulator.c')
0 files changed, 0 insertions, 0 deletions