- 16 7月, 2007 2 次提交
-
-
由 Anton Vorontsov 提交于
Per Jeff Garzik request. Signed-off-by: NJeff Garzik <jeff@garzik.org> Signed-off-by: NAnton Vorontsov <cbou@mail.ru>
-
由 Jeff Garzik 提交于
Clean up pda_power interrupt handling: Prior to this patch, the driver would pass information it needed to the interrupt handler dev_id pointer, and then prompt forget it ever did so, recreating that same information after a couple passes through the timer-based state machine. This patch removes the redundant checks by passing the pda_power_supply[] pointer through the state machine. The current code passed 'irq' through the state machine, as an index to recreate the pointer, when we could more simply pass around the pointer itself. This patch makes it easier to remove the 'irq' argument in the future, in addition to cleaning up the driver today. Signed-off-by: NJeff Garzik <jeff@garzik.org>
-
- 10 7月, 2007 6 次提交
-
-
由 David Woodhouse 提交于
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org> Signed-off-by: NAnton Vorontsov <cbou@mail.ru>
-
由 David Woodhouse 提交于
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org> Signed-off-by: NAnton Vorontsov <cbou@mail.ru>
-
由 Anton Vorontsov 提交于
This is driver for batteries with ds2760 chip inside, found inside almost every HP iPaq and HTC PDAs/phones. Signed-off-by: NAnton Vorontsov <cbou@mail.ru> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
-
由 Anton Vorontsov 提交于
Signed-off-by: NEugeny Boger <eugenyboger@dgap.mipt.ru> Signed-off-by: NAnton Vorontsov <cbou@mail.ru> Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
-
由 Anton Vorontsov 提交于
Common power driver for PDAs and phones with one or two external power supplies (AC/USB) connected to main and backup batteries, and optional builtin charger. It's used to stop logic duplication through different embedded devices. So, power supply *logic* is here. pda_power register power supplies, and will take care about notifying batteries about power changes through external power interface. Currently, power consumption legal limits (including USB power consumption) should be handled by platform code, inside set_charge function. Signed-off-by: NAnton Vorontsov <cbou@mail.ru> Signed-off-by: NRoman Moravcik <roman.moravcik@gmail.com> Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
-
由 Anton Vorontsov 提交于
This class is result of "external power" and "battery" classes merge, as suggested by David Woodhouse. He also implemented uevent support. Here how userspace seeing it now: # ls /sys/class/power\ supply/ ac main-battery usb # cat /sys/class/power\ supply/ac/type AC # cat /sys/class/power\ supply/usb/type USB # cat /sys/class/power\ supply/main-battery/type Battery # cat /sys/class/power\ supply/ac/online 1 # cat /sys/class/power\ supply/usb/online 0 # cat /sys/class/power\ supply/main-battery/status Charging # cat /sys/class/leds/h5400\:red-left/trigger none h5400-radio timer hwtimer ac-online usb-online main-battery-charging-or-full [main-battery-charging] main-battery-full Signed-off-by: NAnton Vorontsov <cbou@mail.ru> Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
-