regulator: Add missing n_voltages setting for max8925
authorAxel Lin <axel.lin@gmail.com>
Mon, 2 Apr 2012 01:16:08 +0000 (09:16 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 2 Apr 2012 22:15:19 +0000 (23:15 +0100)
commit7f52ba7791a35a8e13a3be992fc98da66e68b77d
tree601b53f79ef9515e6cfae40eff5d9ae59ed74267
parent42ff943148f78d6d60d345a52c7cfc6ae3bdf1cf
regulator: Add missing n_voltages setting for max8925

The n_voltages are the same for all regulators: (max - min / step) + 1 == 64.
The vol_shift is always 0, and the vol_nbits is always the same as n_voltages
setting. Thus we can remove vol_shitf and vol_nbits fields from struct
max8925_regulator_info.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max8925-regulator.c
This page took 0.024301 seconds and 5 git commands to generate.