aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/ds2760_battery.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-15 19:56:12 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-15 19:56:12 -0400
commit8f41958bdd577731f7411c9605cfaa9db6766809 (patch)
tree424776ff9ffe3fac011634c7c8db15dee839b0bb /drivers/power/ds2760_battery.c
parentbc06cffdec85d487c77109dffcd2f285bdc502d3 (diff)
parent0909fca51346d0ece688532c54d41ebc986aef7f (diff)
Merge git://git.infradead.org/battery-2.6
* git://git.infradead.org/battery-2.6: git-battery vs git-acpi Power supply class and drivers: remove non obligatory return statements pda_power: clean up irq, timer MAINTAINERS: Add maintainers for power supply subsystem and drivers Fixed up trivial conflict in drivers/w1/slaves/w1_ds2760.c manually
Diffstat (limited to 'drivers/power/ds2760_battery.c')
-rw-r--r--drivers/power/ds2760_battery.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/power/ds2760_battery.c b/drivers/power/ds2760_battery.c
index 00e1ea6f1de2..be7021ee3611 100644
--- a/drivers/power/ds2760_battery.c
+++ b/drivers/power/ds2760_battery.c
@@ -254,8 +254,6 @@ static void ds2760_battery_update_status(struct ds2760_device_info *di)
254 254
255 if (di->charge_status != old_charge_status) 255 if (di->charge_status != old_charge_status)
256 power_supply_changed(&di->bat); 256 power_supply_changed(&di->bat);
257
258 return;
259} 257}
260 258
261static void ds2760_battery_work(struct work_struct *work) 259static void ds2760_battery_work(struct work_struct *work)
@@ -268,8 +266,6 @@ static void ds2760_battery_work(struct work_struct *work)
268 266
269 ds2760_battery_update_status(di); 267 ds2760_battery_update_status(di);
270 queue_delayed_work(di->monitor_wqueue, &di->monitor_work, interval); 268 queue_delayed_work(di->monitor_wqueue, &di->monitor_work, interval);
271
272 return;
273} 269}
274 270
275#define to_ds2760_device_info(x) container_of((x), struct ds2760_device_info, \ 271#define to_ds2760_device_info(x) container_of((x), struct ds2760_device_info, \
@@ -283,8 +279,6 @@ static void ds2760_battery_external_power_changed(struct power_supply *psy)
283 279
284 cancel_delayed_work(&di->monitor_work); 280 cancel_delayed_work(&di->monitor_work);
285 queue_delayed_work(di->monitor_wqueue, &di->monitor_work, HZ/10); 281 queue_delayed_work(di->monitor_wqueue, &di->monitor_work, HZ/10);
286
287 return;
288} 282}
289 283
290static int ds2760_battery_get_property(struct power_supply *psy, 284static int ds2760_battery_get_property(struct power_supply *psy,
@@ -457,7 +451,6 @@ static int __init ds2760_battery_init(void)
457static void __exit ds2760_battery_exit(void) 451static void __exit ds2760_battery_exit(void)
458{ 452{
459 platform_driver_unregister(&ds2760_battery_driver); 453 platform_driver_unregister(&ds2760_battery_driver);
460 return;
461} 454}
462 455
463module_init(ds2760_battery_init); 456module_init(ds2760_battery_init);