]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
twl4030: simplified child creation code
authorDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 12 Nov 2008 01:57:10 +0000 (17:57 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 14 Nov 2008 00:42:55 +0000 (16:42 -0800)
commit1a6a3f846057a57ee6d41346e4f2b21b5b8907fe
treec7906dc5cc14214830fb96476de3ad6421373d22
parent7c946b7a905921590630e3a7710ca5d16ea765ef
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 will help to remove
some irq #defines that prevent this code from compiling on non-OMAP
platforms.

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