regulator: tps62360: fix stylistic issue and optimize code
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 8 May 2012 11:35:58 +0000 (16:35 +0530)
committerSimone Willett <swillett@nvidia.com>
Fri, 1 Jun 2012 20:07:23 +0000 (13:07 -0700)
commit15f2303eb2562379e772651494dd55743a5356e0
tree99354f8d9ecd402a3e53e8755649c25caf5f0df0
parent8b0d9edf90c45567b582b1fcd1fa43c11ce39c1e
regulator: tps62360: fix stylistic issue and optimize code

Fix multiple stylistic issue like:
- The print message should be not break into multiple line.
- line gap after variable declaration and statement.
- checkpatch error.
- some typo.

Some enhancement on error message printing to print error value
also along with proper text.

Avoid voltage_base conversion to microvolts every time.
Put init functions in init section.
Using efficient function inplace of calling multiple function
to reduce the code size.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 2935fb18aa1e75e6afaab3303cdd1a4ac62be63e)

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