regulator: rc5t583: Remove nsteps from struct rc5t583_regulator_info
authorAxel Lin <axel.lin@gmail.com>
Thu, 5 Apr 2012 06:04:48 +0000 (14:04 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 5 Apr 2012 10:07:23 +0000 (11:07 +0100)
commite3a7384c3e98c48b5f122e449e22cc8a1a6c7e0d
tree3bfe325f5655f27cb23bc17e6518814a215dbf35
parent9cc7a453b637d8c1f628f9873204ff55d7aa664c
regulator: rc5t583: Remove nsteps from struct rc5t583_regulator_info

The nsteps can be calculated by (_max_mv - _min_mv) * 1000 / _step_uV + 1,
thus we can remove _nsteps from RC5T583_REG macro, and then remove
nsteps from struct rc5t583_regulator_info.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/rc5t583-regulator.c