mfd: intel_soc_pmic_crc: Use devm_regmap_add_irq_chip()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 1 Aug 2022 11:42:05 +0000 (14:42 +0300)
committerLee Jones <lee@kernel.org>
Wed, 28 Sep 2022 15:09:49 +0000 (16:09 +0100)
commitcae02b7a5d908df3529432ead6f0a659c625a261
tree231d8c3f3eefeee436803a0ddd4ed5e8e01da0b6
parent81f22f284c0fe59b480492c3ecbdfd0dfa96d4b3
mfd: intel_soc_pmic_crc: Use devm_regmap_add_irq_chip()

Use devm_regmap_add_irq_chip() to simplify the code.

While at it, replace -1 magic parameter by PLATFORM_DEVID_NONE when
calling mfd_add_devices().

Note, the mfd_add_devices() left in non-devm variant here due to
potentially increased churn while wrapping pwm_remove_table().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220801114211.36267-4-andriy.shevchenko@linux.intel.com
drivers/mfd/intel_soc_pmic_crc.c