da9063-irq.c (8b55734dc8bdc2327d78fcace3811e64a7c7cfec) da9063-irq.c (c727eea92c9232169c0d375309718fb398aaec67)
1/* da9063-irq.c: Interrupts support for Dialog DA9063
2 *
3 * Copyright 2012 Dialog Semiconductor Ltd.
4 * Copyright 2013 Philipp Zabel, Pengutronix
5 *
6 * Author: Michal Hajduk, Dialog Semiconductor
7 *
8 * This program is free software; you can redistribute it and/or modify it

--- 80 unchanged lines hidden (view full) ---

89 DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI14),
90 REGMAP_IRQ_REG(DA9063_IRQ_GPI15,
91 DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI15),
92};
93
94static const struct regmap_irq_chip da9063_irq_chip = {
95 .name = "da9063-irq",
96 .irqs = da9063_irqs,
1/* da9063-irq.c: Interrupts support for Dialog DA9063
2 *
3 * Copyright 2012 Dialog Semiconductor Ltd.
4 * Copyright 2013 Philipp Zabel, Pengutronix
5 *
6 * Author: Michal Hajduk, Dialog Semiconductor
7 *
8 * This program is free software; you can redistribute it and/or modify it

--- 80 unchanged lines hidden (view full) ---

89 DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI14),
90 REGMAP_IRQ_REG(DA9063_IRQ_GPI15,
91 DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI15),
92};
93
94static const struct regmap_irq_chip da9063_irq_chip = {
95 .name = "da9063-irq",
96 .irqs = da9063_irqs,
97 .num_irqs = DA9063_NUM_IRQ,
97 .num_irqs = ARRAY_SIZE(da9063_irqs),
98 .num_regs = 4,
99 .status_base = DA9063_REG_EVENT_A,
100 .mask_base = DA9063_REG_IRQ_MASK_A,
101 .ack_base = DA9063_REG_EVENT_A,
102 .init_ack_masked = true,
103};
104
105int da9063_irq_init(struct da9063 *da9063)

--- 21 unchanged lines hidden ---
98 .num_regs = 4,
99 .status_base = DA9063_REG_EVENT_A,
100 .mask_base = DA9063_REG_IRQ_MASK_A,
101 .ack_base = DA9063_REG_EVENT_A,
102 .init_ack_masked = true,
103};
104
105int da9063_irq_init(struct da9063 *da9063)

--- 21 unchanged lines hidden ---