[PATCH] i2c: tps65010 build fixes

The tps65010.c driver in the main tree never got updated with
build fixes since the last batch of I2C driver changes; and the
genirq trigger flags were updated wierdly too.

This also includes a minor tweak to reduce the frequency used to
poll for unplug-the-AC-power on the TPS chips that don't provide
relevant IRQs. It _would_ be nice to sense whether there's even
a battery, but that'd normally be an HDQ/1-wire interface to a
smart battery, and such APIs aren't standardized.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by David Brownell and committed by Greg Kroah-Hartman 4801bc25 f834c755

+6 -6
+6 -6
drivers/i2c/chips/tps65010.c
··· 43 /*-------------------------------------------------------------------------*/ 44 45 #define DRIVER_VERSION "2 May 2005" 46 - #define DRIVER_NAME (tps65010_driver.name) 47 48 MODULE_DESCRIPTION("TPS6501x Power Management Driver"); 49 MODULE_LICENSE("GPL"); 50 51 static unsigned short normal_i2c[] = { 0x48, /* 0x49, */ I2C_CLIENT_END }; 52 - static unsigned short normal_i2c_range[] = { I2C_CLIENT_END }; 53 54 I2C_CLIENT_INSMOD; 55 ··· 99 /* not currently tracking GPIO state */ 100 }; 101 102 - #define POWER_POLL_DELAY msecs_to_jiffies(800) 103 104 /*-------------------------------------------------------------------------*/ 105 ··· 519 goto fail1; 520 } 521 522 #ifdef CONFIG_ARM 523 - irqflags = IRQF_SAMPLE_RANDOM | IRQF_TRIGGER_LOW; 524 if (machine_is_omap_h2()) { 525 tps->model = TPS65010; 526 omap_cfg_reg(W4_GPIO58); ··· 545 546 // FIXME set up this board's IRQ ... 547 } 548 - #else 549 - irqflags = IRQF_SAMPLE_RANDOM; 550 #endif 551 552 if (tps->irq > 0) {
··· 43 /*-------------------------------------------------------------------------*/ 44 45 #define DRIVER_VERSION "2 May 2005" 46 + #define DRIVER_NAME (tps65010_driver.driver.name) 47 48 MODULE_DESCRIPTION("TPS6501x Power Management Driver"); 49 MODULE_LICENSE("GPL"); 50 51 static unsigned short normal_i2c[] = { 0x48, /* 0x49, */ I2C_CLIENT_END }; 52 53 I2C_CLIENT_INSMOD; 54 ··· 100 /* not currently tracking GPIO state */ 101 }; 102 103 + #define POWER_POLL_DELAY msecs_to_jiffies(5000) 104 105 /*-------------------------------------------------------------------------*/ 106 ··· 520 goto fail1; 521 } 522 523 + /* the IRQ is active low, but many gpio lines can't support that 524 + * so this driver can use falling-edge triggers instead. 525 + */ 526 + irqflags = IRQF_SAMPLE_RANDOM; 527 #ifdef CONFIG_ARM 528 if (machine_is_omap_h2()) { 529 tps->model = TPS65010; 530 omap_cfg_reg(W4_GPIO58); ··· 543 544 // FIXME set up this board's IRQ ... 545 } 546 #endif 547 548 if (tps->irq > 0) {