forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Tested-by: Hans de Goede <[email protected]> Signed-off-by: Lee Jones <[email protected]> Link: https://lore.kernel.org/r/[email protected]
- Loading branch information
1 parent
e1efbc8
commit 09c4e70
Showing
2 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ | |
* Author: Zhu, Lejun <[email protected]> | ||
*/ | ||
|
||
#include <linux/acpi.h> | ||
#include <linux/i2c.h> | ||
#include <linux/interrupt.h> | ||
#include <linux/mod_devicetable.h> | ||
#include <linux/module.h> | ||
#include <linux/mfd/core.h> | ||
#include <linux/mfd/intel_soc_pmic.h> | ||
|
@@ -259,19 +259,17 @@ static const struct i2c_device_id intel_soc_pmic_i2c_id[] = { | |
}; | ||
MODULE_DEVICE_TABLE(i2c, intel_soc_pmic_i2c_id); | ||
|
||
#if defined(CONFIG_ACPI) | ||
static const struct acpi_device_id intel_soc_pmic_acpi_match[] = { | ||
{ "INT33FD" }, | ||
{ }, | ||
}; | ||
MODULE_DEVICE_TABLE(acpi, intel_soc_pmic_acpi_match); | ||
#endif | ||
|
||
static struct i2c_driver intel_soc_pmic_i2c_driver = { | ||
.driver = { | ||
.name = "intel_soc_pmic_i2c", | ||
.pm = pm_sleep_ptr(&crystal_cove_pm_ops), | ||
.acpi_match_table = ACPI_PTR(intel_soc_pmic_acpi_match), | ||
.acpi_match_table = intel_soc_pmic_acpi_match, | ||
}, | ||
.probe = intel_soc_pmic_i2c_probe, | ||
.remove = intel_soc_pmic_i2c_remove, | ||
|