aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@marvell.com>2010-02-03 15:37:23 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2010-03-07 16:17:17 -0500
commit34c9120805ff4b3f7a8053bd64157ba564774433 (patch)
tree5254980a10c5b39fcbc72b2715b91d1f0d13248d /include
parent28db38888b2a53b6bdd70104c2d2a199632ca507 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/max8925.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/linux/mfd/max8925.h b/include/linux/mfd/max8925.h
index 18c1844ed472..5259dfe8c585 100644
--- a/include/linux/mfd/max8925.h
+++ b/include/linux/mfd/max8925.h
@@ -158,11 +158,6 @@ enum {
158#define TSC_IRQ_MASK (0x03) 158#define TSC_IRQ_MASK (0x03)
159#define RTC_IRQ_MASK (0x0c) 159#define RTC_IRQ_MASK (0x0c)
160 160
161#define MAX8925_GPM_NUM_IRQ (40)
162#define MAX8925_ADC_NUM_IRQ (8)
163#define MAX8925_NUM_IRQ (MAX8925_GPM_NUM_IRQ \
164 + MAX8925_ADC_NUM_IRQ)
165
166#define MAX8925_MAX_REGULATOR (23) 161#define MAX8925_MAX_REGULATOR (23)
167 162
168#define MAX8925_NAME_SIZE (32) 163#define MAX8925_NAME_SIZE (32)
@@ -200,17 +195,11 @@ enum {
200 MAX8925_NR_IRQS, 195 MAX8925_NR_IRQS,
201}; 196};
202 197
203struct max8925_irq {
204 irq_handler_t handler;
205 void *data;
206};
207
208struct max8925_chip { 198struct max8925_chip {
209 struct device *dev; 199 struct device *dev;
210 struct i2c_client *i2c; 200 struct i2c_client *i2c;
211 struct i2c_client *adc; 201 struct i2c_client *adc;
212 struct i2c_client *rtc; 202 struct i2c_client *rtc;
213 struct max8925_irq irqs[MAX8925_NUM_IRQ];
214 struct mutex io_lock; 203 struct mutex io_lock;
215 struct mutex irq_lock; 204 struct mutex irq_lock;
216 205
@@ -257,12 +246,6 @@ extern int max8925_bulk_write(struct i2c_client *, int, int, unsigned char *);
257extern int max8925_set_bits(struct i2c_client *, int, unsigned char, 246extern int max8925_set_bits(struct i2c_client *, int, unsigned char,
258 unsigned char); 247 unsigned char);
259 248
260extern int max8925_request_irq(struct max8925_chip *, int,
261 irq_handler_t, void *);
262extern int max8925_free_irq(struct max8925_chip *, int);
263extern int max8925_mask_irq(struct max8925_chip *, int);
264extern int max8925_unmask_irq(struct max8925_chip *, int);
265
266extern int max8925_device_init(struct max8925_chip *, 249extern int max8925_device_init(struct max8925_chip *,
267 struct max8925_platform_data *); 250 struct max8925_platform_data *);
268extern void max8925_device_exit(struct max8925_chip *); 251extern void max8925_device_exit(struct max8925_chip *);