Commit 72a90ddb authored by Lee Jones's avatar Lee Jones

ab8500-charger: Trivial coding style changes

Enforce the white space character after 'if'.
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 0f4aa401
...@@ -3152,10 +3152,10 @@ static int ab8500_charger_remove(struct platform_device *pdev) ...@@ -3152,10 +3152,10 @@ static int ab8500_charger_remove(struct platform_device *pdev)
destroy_workqueue(di->charger_wq); destroy_workqueue(di->charger_wq);
flush_scheduled_work(); flush_scheduled_work();
if(di->usb_chg.enabled) if (di->usb_chg.enabled)
power_supply_unregister(&di->usb_chg.psy); power_supply_unregister(&di->usb_chg.psy);
#if !defined(CONFIG_CHARGER_PM2301) #if !defined(CONFIG_CHARGER_PM2301)
if(di->ac_chg.enabled) if (di->ac_chg.enabled)
power_supply_unregister(&di->ac_chg.psy); power_supply_unregister(&di->ac_chg.psy);
#endif #endif
platform_set_drvdata(pdev, NULL); platform_set_drvdata(pdev, NULL);
...@@ -3331,7 +3331,7 @@ static int ab8500_charger_probe(struct platform_device *pdev) ...@@ -3331,7 +3331,7 @@ static int ab8500_charger_probe(struct platform_device *pdev)
} }
/* Register AC charger class */ /* Register AC charger class */
if(di->ac_chg.enabled) { if (di->ac_chg.enabled) {
ret = power_supply_register(di->dev, &di->ac_chg.psy); ret = power_supply_register(di->dev, &di->ac_chg.psy);
if (ret) { if (ret) {
dev_err(di->dev, "failed to register AC charger\n"); dev_err(di->dev, "failed to register AC charger\n");
...@@ -3340,7 +3340,7 @@ static int ab8500_charger_probe(struct platform_device *pdev) ...@@ -3340,7 +3340,7 @@ static int ab8500_charger_probe(struct platform_device *pdev)
} }
/* Register USB charger class */ /* Register USB charger class */
if(di->usb_chg.enabled) { if (di->usb_chg.enabled) {
ret = power_supply_register(di->dev, &di->usb_chg.psy); ret = power_supply_register(di->dev, &di->usb_chg.psy);
if (ret) { if (ret) {
dev_err(di->dev, "failed to register USB charger\n"); dev_err(di->dev, "failed to register USB charger\n");
...@@ -3425,10 +3425,10 @@ static int ab8500_charger_probe(struct platform_device *pdev) ...@@ -3425,10 +3425,10 @@ static int ab8500_charger_probe(struct platform_device *pdev)
put_usb_phy: put_usb_phy:
usb_put_phy(di->usb_phy); usb_put_phy(di->usb_phy);
free_usb: free_usb:
if(di->usb_chg.enabled) if (di->usb_chg.enabled)
power_supply_unregister(&di->usb_chg.psy); power_supply_unregister(&di->usb_chg.psy);
free_ac: free_ac:
if(di->ac_chg.enabled) if (di->ac_chg.enabled)
power_supply_unregister(&di->ac_chg.psy); power_supply_unregister(&di->ac_chg.psy);
free_charger_wq: free_charger_wq:
destroy_workqueue(di->charger_wq); destroy_workqueue(di->charger_wq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment