commit | bb2a95c2d2450be1ac942adf6815375f620b7015 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@gmail.com> | Thu Jan 12 12:56:35 2012 +0800 |
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | Mon Mar 26 20:41:19 2012 +0400 |
tree | de8fdf6b7fc59f931de42468f32d1f9fc9c3ce57 | |
parent | 534f5306d701e2717b039898888bfbb8584186bd [diff] |
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>