]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
TWL4030: move TWL module register defs into separate include files
authorPaul Walmsley <paul@pwsan.com>
Tue, 22 Jul 2008 23:51:44 +0000 (17:51 -0600)
committerTony Lindgren <tony@atomide.com>
Mon, 4 Aug 2008 14:14:42 +0000 (17:14 +0300)
commitce5dd0bbc805ab40ad15d9ace8db46a6fa13adc6
tree6702ee37fc285680bf72f50913ae9df537a16617
parent12e75707d4551d90111d32bf552fcf90bf8f70c7
TWL4030: move TWL module register defs into separate include files

twl_init_irq() uses "magic numbers" to access TWL module IMR and ISR
registers.  Symbolic constants are definitely preferred.

Rather than duplicating already existing symbolic constants in
twl4030-gpio.c and twl4030-pwrirq.c, move the existing constants out
into include files.  This patch should not change kernel behavior.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/twl4030-gpio.c
drivers/i2c/chips/twl4030-pwrirq.c
include/linux/i2c/twl4030-gpio.h [new file with mode: 0644]
include/linux/i2c/twl4030-pwrirq.h [new file with mode: 0644]