]> git.baikalelectronics.ru Git - kernel.git/commit
pda_power: clean up irq, timer
authorJeff Garzik <jeff@garzik.org>
Sat, 14 Jul 2007 23:12:04 +0000 (19:12 -0400)
committerAnton Vorontsov <cbou@mail.ru>
Sun, 15 Jul 2007 18:32:03 +0000 (22:32 +0400)
commitac7f804da748f6f20776e645a44716828162e09a
tree3ad37208eb90bb8ce530ee0befe99c192868ba1e
parent544c3982b0b2a70fe7a5e50a19da868a532959be
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>
drivers/power/pda_power.c