regulator: tps62360: fix stylistic issue and optimize code
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 8 May 2012 11:35:58 +0000 (16:35 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 7 Jun 2012 08:54:30 +0000 (13:54 +0530)
commit240e6ad7d99fc80113758e92a8c5ab6e0b896ac9
tree352860bbd605950a2da2d8dd41deda63ea20c602
parent238678c7d46aa68e39834de4bd0736c4bac637ee
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