]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2421956e7cd446140915808ec9d1f5b2b9df0eba
tree294ec5ab64b0a351898e0ae1bbdbea508211f832
parent3696bfbe8d9501ad62443ee74c94cf9e1aba7e8c
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