summaryrefslogtreecommitdiff
path: root/drivers/mfd/da9063-irq.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2018-06-11 14:58:43 +0300
committerLee Jones <lee.jones@linaro.org>2018-07-04 09:16:09 +0300
commitc727eea92c9232169c0d375309718fb398aaec67 (patch)
treee15b217f688fcdfc78e5ee824286ebb7b8a47f85 /drivers/mfd/da9063-irq.c
parent152bed762ad95373279dc15044706f59c2f39638 (diff)
downloadlinux-c727eea92c9232169c0d375309718fb398aaec67.tar.xz
mfd: da9063: Replace DA9063_NUM_IRQ with ARRAY_SIZE
Replace DA9063_NUM_IRQ macro which is not used anywhere with plain ARRAY_SIZE(). Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/da9063-irq.c')
-rw-r--r--drivers/mfd/da9063-irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/da9063-irq.c b/drivers/mfd/da9063-irq.c
index 044bd867f540..579947f83486 100644
--- a/drivers/mfd/da9063-irq.c
+++ b/drivers/mfd/da9063-irq.c
@@ -94,7 +94,7 @@ static const struct regmap_irq da9063_irqs[] = {
static const struct regmap_irq_chip da9063_irq_chip = {
.name = "da9063-irq",
.irqs = da9063_irqs,
- .num_irqs = DA9063_NUM_IRQ,
+ .num_irqs = ARRAY_SIZE(da9063_irqs),
.num_regs = 4,
.status_base = DA9063_REG_EVENT_A,
.mask_base = DA9063_REG_IRQ_MASK_A,