mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
152bed762a
commit
c727eea92c
2 changed files with 1 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue