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)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 7 Jun 2012 09:27:15 +0000 (14:27 +0530)
commitc68604c7a021e1d142680d282a6303468f8e0a5e
treec97f79f3ffc65fff35881bf54b1256278dce3d6d
parent2c0e4d1bbcdca35a178b5e4bb94e23f5cc98987e
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>
(cherry picked from commit e3a7384c3e98c48b5f122e449e22cc8a1a6c7e0d)

Change-Id: If6db39255b2f7f8be38b848f2ca2619301b19b38
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/105883
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
drivers/regulator/rc5t583-regulator.c