mfd: intel_soc_pmic_crc: Drop redundant ACPI_PTR() and ifdeffery
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 1 Aug 2022 11:42:08 +0000 (14:42 +0300)
committerLee Jones <lee@kernel.org>
Wed, 28 Sep 2022 15:09:49 +0000 (16:09 +0100)
commit09c4e702bc9dbd3e8a1d93144571c31f977eb866
tree8fe5292c2d956ce146bb4545f35eb87670f58927
parente1efbc8e464c6ff098ca6fda9398159882e146b0
mfd: intel_soc_pmic_crc: Drop redundant ACPI_PTR() and ifdeffery

The driver depends on ACPI, ACPI_PTR() resolution is always the same.
Otherwise a compiler may produce a warning.

That said, the rule of thumb either ugly ifdeffery with ACPI_PTR or
none should be used in a driver.

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-7-andriy.shevchenko@linux.intel.com
drivers/mfd/Kconfig
drivers/mfd/intel_soc_pmic_crc.c