]> git.karo-electronics.de Git - linux-beck.git/commit
regulator: ab8500: Remove min_uV and max_uV from struct ab8500_regulator_info
authorAxel Lin <axel.lin@gmail.com>
Fri, 8 Jun 2012 02:29:21 +0000 (10:29 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 17 Jun 2012 20:04:45 +0000 (21:04 +0100)
commit07b9e329f99397d01e4789d64aa2f581a7c94b03
treee8fd36f96c52a0e9e4ccbfb5c31c44f693555f34
parent7142e2138b088da429d94859df0ed05b1b82607c
regulator: ab8500: Remove min_uV and max_uV from struct ab8500_regulator_info

The min_uV and max_uV are not really used in the code and misleading because
the min_uV and max_uV settings does not match the value in the voltage table.

For example, we have
static const unsigned int ldo_vaux3_voltages[] = {
        1200000,
        1500000,
        1800000,
        2100000,
        2500000,
        2750000,
        2790000,
        2910000,
};

With below min_uV/max_uV settings for AB8500_LDO_AUX3.
.min_uV                 = 1100000,
.max_uV                 = 3300000,

The min_uV/max_uV for AB8500_LDO_AUX3 seems copy-paste from AB8500_LDO_AUX2
and is wrong.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/ab8500.c