2 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 * Qualcomm PMIC irq 8xxx driver header file
18 #ifndef __MFD_PM8XXX_IRQ_H
19 #define __MFD_PM8XXX_IRQ_H
21 #include <linux/errno.h>
22 #include <linux/err.h>
24 struct pm8xxx_irq_core_data
{
29 struct pm8xxx_irq_platform_data
{
31 struct pm8xxx_irq_core_data irq_cdata
;
38 #ifdef CONFIG_MFD_PM8XXX_IRQ
39 int pm8xxx_get_irq_stat(struct pm_irq_chip
*chip
, int irq
);
40 struct pm_irq_chip
* __devinit
pm8xxx_irq_init(struct device
*dev
,
41 const struct pm8xxx_irq_platform_data
*pdata
);
42 int __devexit
pm8xxx_irq_exit(struct pm_irq_chip
*chip
);
44 static inline int pm8xxx_get_irq_stat(struct pm_irq_chip
*chip
, int irq
)
48 static inline struct pm_irq_chip
* __devinit
pm8xxx_irq_init(
49 const struct device
*dev
,
50 const struct pm8xxx_irq_platform_data
*pdata
)
52 return ERR_PTR(-ENXIO
);
54 static inline int __devexit
pm8xxx_irq_exit(struct pm_irq_chip
*chip
)
58 #endif /* CONFIG_MFD_PM8XXX_IRQ */
59 #endif /* __MFD_PM8XXX_IRQ_H */