regulator: tps62360: fix stylistic issue and optimize code
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 8 May 2012 11:35:58 +0000 (17:05 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 8 May 2012 11:42:32 +0000 (12:42 +0100)
commit2935fb18aa1e75e6afaab3303cdd1a4ac62be63e
tree294ec5ab64b0a351898e0ae1bbdbea508211f832
parent053fa1b75244c4be0d4b4065f80f31deaf2f24a7
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>
drivers/regulator/tps62360-regulator.c