aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mfd')
-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 *);