android_kernel_xiaomi_sm8350/drivers/power
Jeff Garzik 5ebf6e6a96 pda_power: clean up irq, timer
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: Jeff Garzik <jeff@garzik.org>
2007-07-15 22:32:03 +04:00
..
apm_power.c [BATTERY] APM emulation driver for class batteries 2007-07-10 11:26:08 +01:00
ds2760_battery.c [BATTERY] 1-Wire ds2760 chip battery driver 2007-07-10 11:26:18 +01:00
Kconfig [BATTERY] One Laptop Per Child power/battery driver 2007-07-10 11:28:22 +01:00
Makefile [BATTERY] One Laptop Per Child power/battery driver 2007-07-10 11:28:22 +01:00
olpc_battery.c [BATTERY] One Laptop Per Child power/battery driver 2007-07-10 11:28:22 +01:00
pda_power.c pda_power: clean up irq, timer 2007-07-15 22:32:03 +04:00
pmu_battery.c [BATTERY] Apple PMU driver 2007-07-10 11:28:12 +01:00
power_supply_core.c
power_supply_leds.c
power_supply_sysfs.c
power_supply.h