]> git.karo-electronics.de Git - karo-tx-linux.git/commit
charger-manager: Clean up for better readability
authorAxel Lin <axel.lin@gmail.com>
Thu, 12 Jan 2012 04:56:35 +0000 (12:56 +0800)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Mon, 26 Mar 2012 16:41:19 +0000 (20:41 +0400)
commitbb2a95c2d2450be1ac942adf6815375f620b7015
treede8fdf6b7fc59f931de42468f32d1f9fc9c3ce57
parent534f5306d701e2717b039898888bfbb8584186bd
charger-manager: Clean up for better readability

This patch includes below changes:

* Some code change for better readability.
* Current code in probe already ensures desc->charger_regulators
  is not NULL. No need to check if it is NULL or not before calling
  regulator_bulk_free().
* Use dev_get_drvdata() in cm_suspend_prepare() and cm_suspend_complete()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/charger-manager.c