mfd: intel_soc_pmic_bxtwc: Drop redundant ACPI_PTR()

The driver depends on ACPI (via MFD_INTEL_PMC_BXT), 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>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220628221747.33956-7-andriy.shevchenko@linux.intel.com
This commit is contained in:
Andy Shevchenko 2022-06-29 01:17:43 +03:00 committed by Lee Jones
parent 05879b125a
commit cd58c84034

View file

@ -573,7 +573,7 @@ static struct platform_driver bxtwc_driver = {
.driver = { .driver = {
.name = "BXTWC PMIC", .name = "BXTWC PMIC",
.pm = pm_sleep_ptr(&bxtwc_pm_ops), .pm = pm_sleep_ptr(&bxtwc_pm_ops),
.acpi_match_table = ACPI_PTR(bxtwc_acpi_ids), .acpi_match_table = bxtwc_acpi_ids,
.dev_groups = bxtwc_groups, .dev_groups = bxtwc_groups,
}, },
}; };