commit | 0dceab33342d279130252b7c587142a7252a9324 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Sun Apr 14 20:48:18 2019 +0800 |
committer | Mark Brown <broonie@kernel.org> | Mon Apr 15 09:45:15 2019 +0100 |
tree | 34f218da1ffa1f6e81b745417a9418bcf11a2b89 | |
parent | 7d695f20c27f33173f2149d4d1c6e994e5c0b08e [diff] |
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>