mfd: Clean code in max8925

Previous thread: gpiolib: Add WM8994 GPIO support by Linux Kernel Mailing List on Sunday, March 7, 2010 - 6:03 pm. (1 message)

Next thread: mfd: Use i2c_dummy in 88pm860x by Linux Kernel Mailing List on Sunday, March 7, 2010 - 6:04 pm. (1 message)
From: Linux Kernel Mailing List
Date: Sunday, March 7, 2010 - 6:04 pm

Gitweb:     http://git.kernel.org/linus/34c9120805ff4b3f7a8053bd64157ba564774433
Commit:     34c9120805ff4b3f7a8053bd64157ba564774433
Parent:     28db38888b2a53b6bdd70104c2d2a199632ca507
Author:     Haojian Zhuang <haojian.zhuang@marvell.com>
AuthorDate: Wed Feb 3 15:37:23 2010 -0500
Committer:  Samuel Ortiz <sameo@linux.intel.com>
CommitDate: Sun Mar 7 22:17:17 2010 +0100

    mfd: Clean code in max8925
    
    Remove unused definitions.
    
    Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
    Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
---
 include/linux/mfd/max8925.h |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/include/linux/mfd/max8925.h b/include/linux/mfd/max8925.h
index 18c1844..5259dfe 100644
--- a/include/linux/mfd/max8925.h
+++ b/include/linux/mfd/max8925.h
@@ -158,11 +158,6 @@ enum {
 #define TSC_IRQ_MASK			(0x03)
 #define RTC_IRQ_MASK			(0x0c)
 
-#define MAX8925_GPM_NUM_IRQ		(40)
-#define MAX8925_ADC_NUM_IRQ		(8)
-#define MAX8925_NUM_IRQ			(MAX8925_GPM_NUM_IRQ	\
-					+ MAX8925_ADC_NUM_IRQ)
-
 #define MAX8925_MAX_REGULATOR		(23)
 
 #define MAX8925_NAME_SIZE		(32)
@@ -200,17 +195,11 @@ enum {
 	MAX8925_NR_IRQS,
 };
 
-struct max8925_irq {
-	irq_handler_t		handler;
-	void			*data;
-};
-
 struct max8925_chip {
 	struct device		*dev;
 	struct i2c_client	*i2c;
 	struct i2c_client	*adc;
 	struct i2c_client	*rtc;
-	struct max8925_irq	irqs[MAX8925_NUM_IRQ];
 	struct mutex		io_lock;
 	struct mutex		irq_lock;
 
@@ -257,12 +246,6 @@ extern int max8925_bulk_write(struct i2c_client *, int, int, unsigned char *);
 extern int max8925_set_bits(struct i2c_client *, int, unsigned char,
 			unsigned char);
 
-extern int max8925_request_irq(struct max8925_chip *, int,
-			irq_handler_t, void *);
-extern int max8925_free_irq(struct max8925_chip *, int);
-extern int max8925_mask_irq(struct max8925_chip *, int);
-extern int max8925_unmask_irq(struct max8925_chip *, int);
-
 extern int ...
Previous thread: gpiolib: Add WM8994 GPIO support by Linux Kernel Mailing List on Sunday, March 7, 2010 - 6:03 pm. (1 message)

Next thread: mfd: Use i2c_dummy in 88pm860x by Linux Kernel Mailing List on Sunday, March 7, 2010 - 6:04 pm. (1 message)