Commit c727eea9 authored by Marek Vasut's avatar Marek Vasut Committed by Lee Jones

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: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 152bed76
...@@ -94,7 +94,7 @@ static const struct regmap_irq da9063_irqs[] = { ...@@ -94,7 +94,7 @@ static const struct regmap_irq da9063_irqs[] = {
static const struct regmap_irq_chip da9063_irq_chip = { static const struct regmap_irq_chip da9063_irq_chip = {
.name = "da9063-irq", .name = "da9063-irq",
.irqs = da9063_irqs, .irqs = da9063_irqs,
.num_irqs = DA9063_NUM_IRQ, .num_irqs = ARRAY_SIZE(da9063_irqs),
.num_regs = 4, .num_regs = 4,
.status_base = DA9063_REG_EVENT_A, .status_base = DA9063_REG_EVENT_A,
.mask_base = DA9063_REG_IRQ_MASK_A, .mask_base = DA9063_REG_IRQ_MASK_A,
......
...@@ -72,9 +72,6 @@ enum da9063_irqs { ...@@ -72,9 +72,6 @@ enum da9063_irqs {
DA9063_IRQ_GPI15, DA9063_IRQ_GPI15,
}; };
#define DA9063_IRQ_BASE_OFFSET 0
#define DA9063_NUM_IRQ (DA9063_IRQ_GPI15 + 1 - DA9063_IRQ_BASE_OFFSET)
struct da9063 { struct da9063 {
/* Device */ /* Device */
struct device *dev; struct device *dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment