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

+20 -49
+10
MAINTAINERS
··· 2869 2869 L: linux-kernel@vger.kernel.org 2870 2870 S: Supported 2871 2871 2872 + POWER SUPPLY CLASS/SUBSYSTEM and DRIVERS 2873 + P: Anton Vorontsov 2874 + M: cbou@mail.ru 2875 + P: David Woodhouse 2876 + M: dwmw2@infradead.org 2877 + L: linux-kernel@vger.kernel.org 2878 + L: kernel-discuss@handhelds.org 2879 + T: git git.infradead.org/battery-2.6.git 2880 + S: Maintained 2881 + 2872 2882 POWERPC 4xx EMAC DRIVER 2873 2883 P: Eugene Surovegin 2874 2884 M: ebs@ebshome.net
-4
drivers/power/apm_power.c
··· 48 48 } 49 49 if (!main_battery) 50 50 main_battery = batm; 51 - 52 - return; 53 51 } 54 52 55 53 static int calculate_time(int status) ··· 216 218 } 217 219 218 220 up(&power_supply_class->sem); 219 - return; 220 221 } 221 222 222 223 static int __init apm_battery_init(void) ··· 229 232 static void __exit apm_battery_exit(void) 230 233 { 231 234 apm_get_power_status = NULL; 232 - return; 233 235 } 234 236 235 237 module_init(apm_battery_init);
-7
drivers/power/ds2760_battery.c
··· 254 254 255 255 if (di->charge_status != old_charge_status) 256 256 power_supply_changed(&di->bat); 257 - 258 - return; 259 257 } 260 258 261 259 static void ds2760_battery_work(struct work_struct *work) ··· 266 268 267 269 ds2760_battery_update_status(di); 268 270 queue_delayed_work(di->monitor_wqueue, &di->monitor_work, interval); 269 - 270 - return; 271 271 } 272 272 273 273 #define to_ds2760_device_info(x) container_of((x), struct ds2760_device_info, \ ··· 279 283 280 284 cancel_delayed_work(&di->monitor_work); 281 285 queue_delayed_work(di->monitor_wqueue, &di->monitor_work, HZ/10); 282 - 283 - return; 284 286 } 285 287 286 288 static int ds2760_battery_get_property(struct power_supply *psy, ··· 451 457 static void __exit ds2760_battery_exit(void) 452 458 { 453 459 platform_driver_unregister(&ds2760_battery_driver); 454 - return; 455 460 } 456 461 457 462 module_init(ds2760_battery_init);
-1
drivers/power/olpc_battery.c
··· 341 341 power_supply_unregister(&olpc_bat); 342 342 power_supply_unregister(&olpc_ac); 343 343 platform_device_unregister(bat_pdev); 344 - return; 345 344 } 346 345 347 346 module_init(olpc_bat_init);
+8 -14
drivers/power/pda_power.c
··· 97 97 dev_dbg(dev, "charger off\n"); 98 98 pdata->set_charge(0); 99 99 } 100 - 101 - return; 102 100 } 103 101 104 - static void supply_timer_func(unsigned long irq) 102 + static void supply_timer_func(unsigned long power_supply_ptr) 105 103 { 106 - if (ac_irq && irq == ac_irq->start) 107 - power_supply_changed(&pda_power_supplies[0]); 108 - else if (usb_irq && irq == usb_irq->start) 109 - power_supply_changed(&pda_power_supplies[1]); 110 - return; 104 + void *power_supply = (void *)power_supply_ptr; 105 + 106 + power_supply_changed(power_supply); 111 107 } 112 108 113 - static void charger_timer_func(unsigned long irq) 109 + static void charger_timer_func(unsigned long power_supply_ptr) 114 110 { 115 111 update_charger(); 116 112 117 113 /* Okay, charger set. Now wait a bit before notifying supplicants, 118 114 * charge power should stabilize. */ 119 - supply_timer.data = irq; 115 + supply_timer.data = power_supply_ptr; 120 116 mod_timer(&supply_timer, 121 117 jiffies + msecs_to_jiffies(pdata->wait_for_charger)); 122 - return; 123 118 } 124 119 125 - static irqreturn_t power_changed_isr(int irq, void *unused) 120 + static irqreturn_t power_changed_isr(int irq, void *power_supply) 126 121 { 127 122 /* Wait a bit before reading ac/usb line status and setting charger, 128 123 * because ac/usb status readings may lag from irq. */ 129 - charger_timer.data = irq; 124 + charger_timer.data = (unsigned long)power_supply; 130 125 mod_timer(&charger_timer, 131 126 jiffies + msecs_to_jiffies(pdata->wait_for_status)); 132 127 return IRQ_HANDLED; ··· 247 252 static void __exit pda_power_exit(void) 248 253 { 249 254 platform_driver_unregister(&pda_power_pdrv); 250 - return; 251 255 } 252 256 253 257 module_init(pda_power_init);
-2
drivers/power/pmu_battery.c
··· 203 203 } 204 204 power_supply_unregister(&pmu_ac); 205 205 platform_device_unregister(bat_pdev); 206 - 207 - return; 208 206 } 209 207 210 208 module_init(pmu_bat_init);
-6
drivers/power/power_supply_core.c
··· 46 46 power_supply_update_leds(psy); 47 47 48 48 kobject_uevent(&psy->dev->kobj, KOBJ_CHANGE); 49 - 50 - return; 51 49 } 52 50 53 51 void power_supply_changed(struct power_supply *psy) ··· 53 55 dev_dbg(psy->dev, "%s\n", __FUNCTION__); 54 56 55 57 schedule_work(&psy->changed_work); 56 - 57 - return; 58 58 } 59 59 60 60 int power_supply_am_i_supplied(struct power_supply *psy) ··· 125 129 power_supply_remove_triggers(psy); 126 130 power_supply_remove_attrs(psy); 127 131 device_unregister(psy->dev); 128 - return; 129 132 } 130 133 131 134 static int __init power_supply_class_init(void) ··· 142 147 static void __exit power_supply_class_exit(void) 143 148 { 144 149 class_destroy(power_supply_class); 145 - return; 146 150 } 147 151 148 152 EXPORT_SYMBOL_GPL(power_supply_changed);
-8
drivers/power/power_supply_leds.c
··· 40 40 led_trigger_event(psy->full_trig, LED_OFF); 41 41 break; 42 42 } 43 - 44 - return; 45 43 } 46 44 47 45 static int power_supply_create_bat_triggers(struct power_supply *psy) ··· 95 97 kfree(psy->full_trig_name); 96 98 kfree(psy->charging_trig_name); 97 99 kfree(psy->charging_full_trig_name); 98 - return; 99 100 } 100 101 101 102 /* Generated power specific LEDs triggers. */ ··· 112 115 led_trigger_event(psy->online_trig, LED_FULL); 113 116 else 114 117 led_trigger_event(psy->online_trig, LED_OFF); 115 - 116 - return; 117 118 } 118 119 119 120 static int power_supply_create_gen_triggers(struct power_supply *psy) ··· 140 145 { 141 146 led_trigger_unregister_simple(psy->online_trig); 142 147 kfree(psy->online_trig_name); 143 - return; 144 148 } 145 149 146 150 /* Choice what triggers to create&update. */ ··· 150 156 power_supply_update_bat_leds(psy); 151 157 else 152 158 power_supply_update_gen_leds(psy); 153 - return; 154 159 } 155 160 156 161 int power_supply_create_triggers(struct power_supply *psy) ··· 165 172 power_supply_remove_bat_triggers(psy); 166 173 else 167 174 power_supply_remove_gen_triggers(psy); 168 - return; 169 175 }
-2
drivers/power/power_supply_sysfs.c
··· 176 176 for (i = 0; i < psy->num_properties; i++) 177 177 device_remove_file(psy->dev, 178 178 &power_supply_attrs[psy->properties[i]]); 179 - 180 - return; 181 179 } 182 180 183 181 static char *kstruprdup(const char *str, gfp_t gfp)
+2 -5
drivers/w1/slaves/w1_ds2760.c
··· 68 68 return w1_ds2760_io(dev, buf, addr, count, 1); 69 69 } 70 70 71 - static ssize_t w1_ds2760_read_bin(struct kobject *kobj, struct bin_attribute *attr, 71 + static ssize_t w1_ds2760_read_bin(struct kobject *kobj, 72 + struct bin_attribute *bin_attr, 72 73 char *buf, loff_t off, size_t count) 73 74 { 74 75 struct device *dev = container_of(kobj, struct device, kobj); ··· 122 121 mutex_lock(&bat_idr_lock); 123 122 idr_remove(&bat_idr, id); 124 123 mutex_unlock(&bat_idr_lock); 125 - 126 - return; 127 124 } 128 125 129 126 static int w1_ds2760_add_slave(struct w1_slave *sl) ··· 173 174 platform_device_unregister(pdev); 174 175 release_bat_id(id); 175 176 sysfs_remove_bin_file(&sl->dev.kobj, &w1_ds2760_bin_attr); 176 - 177 - return; 178 177 } 179 178 180 179 static struct w1_family_ops w1_ds2760_fops = {