aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/twl6040.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h
index c3c1de53dcfe..df890a247c36 100644
--- a/include/linux/mfd/twl6040.h
+++ b/include/linux/mfd/twl6040.h
@@ -215,28 +215,6 @@ struct twl6040 {
215 u8 irq_masks_cache; 215 u8 irq_masks_cache;
216}; 216};
217 217
218static inline int twl6040_request_irq(struct twl6040 *twl6040, int irq,
219 irq_handler_t handler,
220 unsigned long irqflags,
221 const char *name,
222 void *data)
223{
224 if (!twl6040->irq_base)
225 return -EINVAL;
226
227 return request_threaded_irq(twl6040->irq_base + irq, NULL, handler,
228 irqflags, name, data);
229}
230
231static inline void twl6040_free_irq(struct twl6040 *twl6040, int irq,
232 void *data)
233{
234 if (!twl6040->irq_base)
235 return;
236
237 free_irq(twl6040->irq_base + irq, data);
238}
239
240int twl6040_reg_read(struct twl6040 *twl6040, unsigned int reg); 218int twl6040_reg_read(struct twl6040 *twl6040, unsigned int reg);
241int twl6040_reg_write(struct twl6040 *twl6040, unsigned int reg, 219int twl6040_reg_write(struct twl6040 *twl6040, unsigned int reg,
242 u8 val); 220 u8 val);