]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
mfd: twl4030: simplified child creation code
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sun, 30 Nov 2008 23:31:04 +0000 (00:31 +0100)
committerSamuel Ortiz <samuel@sortiz.org>
Sun, 4 Jan 2009 11:17:39 +0000 (12:17 +0100)
commit5725d66b9d18e630bb63e3b76bedf25fd1027265
treee90fbe3972de8cdbc6971ea814334c42bb0c1873
parent4008e879e1325c29362aa2c3fa4b527273ae15a8
mfd: twl4030: simplified child creation code

Minor cleanup to twl4030-core: define a helper function to populate
a single child node, and use it to replace six inconsistent versions
of the same logic.  Both object and source code shrink.

As part of this, some devices now have more IRQ resources:  battery
charger, keypad, ADC, and USB transceiver.  That helps to remove some
irq #defines that block the children's drivers code from compiling on
non-OMAP platforms.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
drivers/mfd/twl4030-core.c