twl4030-core cleanup
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 3 Oct 2008 16:00:48 +0000 (09:00 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 6 Oct 2008 06:32:35 +0000 (09:32 +0300)
commit65900d7177d806f861f345d99d7228fe7d3fc423
treee8c02dd9fa540dbd9c7c9b1809d6cde665664e3e
parenta9246f74a65b79d398356813a020885a2ee65d83
twl4030-core cleanup

A variety of twl4030-core cleanups:

 - SIH register declarations moved from core.c to twl4030.h, for
   keypad, madc, bci; this decouples from twl4030-madc.h; add
   several omitted register decls; remove a duplicate.

 - Use a global "inuse" flag, not a per-slave one;

 - Remove pointless SLAVENUM_NUM symbols; just use 0/1/2/3

 - Comments:
     * Add comments:  header, register values
     * Add some section delimiters
     * Correct clock init and other comments

 - Minor stuff:
     * Group some variables and code with sibling
     * Make clock init a bit simpler
     * List twl5030 in supported i2c chips list
     * Remove needless "return;"

And one IRQ-related bugfix:  if the I2C timeout bug strikes while
reading PIH interrupt status, force an immediate retry.  Otherwise
the twl4030 IRQ will never get re-enabled...

Object size shrinks by 180 bytes, w00t!

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