]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Convert WM835x IRQ handling to use a data table
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 12 Oct 2009 15:15:10 +0000 (16:15 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 13 Dec 2009 18:21:02 +0000 (19:21 +0100)
commit3bb1491d561c273fab9188b3f888932eacf58db8
treea3a05efd1983810207f5283ee78a033f719e52a0
parentb9490c0202d133391bd879a302b93f876df00e8b
mfd: Convert WM835x IRQ handling to use a data table

Rather than open coding individual IRQs in each function which
manipulates them store data for IRQs in a table which is then
referenced in the users.

This is a substantial code shrink and should be a performance win in
cases where only a single IRQ goes off at once since instead of
reading four of the second level IRQ registers for each interrupt
we read only the sub-registers which have had an interrupt flagged.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm8350-irq.c
include/linux/mfd/wm8350/gpio.h