]> www.infradead.org Git - linux.git/commit
mfd: pm8008: Fix regmap irq chip initialisation
authorJohan Hovold <johan+linaro@kernel.org>
Sat, 8 Jun 2024 15:55:16 +0000 (17:55 +0200)
committerLee Jones <lee@kernel.org>
Thu, 13 Jun 2024 17:42:20 +0000 (18:42 +0100)
commit6ad7f80b53251dbbca81e18a17cf6f8bcd34cb20
treecc0e87fa47a710e10c431cae1558d0dd99b32a1f
parent0682cfa3325fefe8a3cb1c02854135ee73b8ae16
mfd: pm8008: Fix regmap irq chip initialisation

The regmap irq array is potentially shared between multiple PMICs and
should only contain static data.

Use a custom macro to initialise also the type fields and drop the
unnecessary updates on each probe.

Fixes: 6b149f3310a4 ("mfd: pm8008: Add driver for QCOM PM8008 PMIC")
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20240608155526.12996-3-johan+linaro@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/qcom-pm8008.c