[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220616165823.4919-7-andriy.shevchenko@linux.intel.com>
Date: Thu, 16 Jun 2022 19:58:19 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
linux-kernel@...r.kernel.org
Cc: Andy Shevchenko <andy@...nel.org>, Lee Jones <lee.jones@...aro.org>
Subject: [PATCH v1 07/11] 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@...ux.intel.com>
---
drivers/mfd/intel_soc_pmic_bxtwc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/intel_soc_pmic_bxtwc.c b/drivers/mfd/intel_soc_pmic_bxtwc.c
index 6e4c2ca47d82..b48e620de7a3 100644
--- a/drivers/mfd/intel_soc_pmic_bxtwc.c
+++ b/drivers/mfd/intel_soc_pmic_bxtwc.c
@@ -575,7 +575,7 @@ static struct platform_driver bxtwc_driver = {
.driver = {
.name = "BXTWC PMIC",
.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,
},
};
--
2.35.1
Powered by blists - more mailing lists