]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
twl4030 gpio cleanups
authorDavid Brownell <dbrownell@users.sourceforge.net>
Tue, 30 Sep 2008 19:49:06 +0000 (12:49 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 1 Oct 2008 10:38:27 +0000 (13:38 +0300)
commita58e7072c8d59f6731a0ff8ccf186acb42948a60
treeb9d2c3a71b025372221a01adcd9031d925a96e27
parenta6a0bd1b1a730422703a440e8fc6aa177ad67b81
twl4030 gpio cleanups

Clean up the twl4030-gpio code a bit ... mostly by shrinkage.

Remove a bunch of macros that are just obfuscating what the
TWL4030 GPIO code is doing.  Some duplicated standard macros
like BIT(); others hid trivial math (mask/shift); others were
completely unused.

Use BIT() in several places to highlight the bitmasking and
make the code more compact.

Remove pointless locking calls, sanity checks, and parenthesis.
And needless irq_chip.

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