diff options
author | 2020-11-05 13:05:27 +0200 | |
---|---|---|
committer | 2020-11-24 11:25:19 +0100 | |
commit | 6c328c347ac3dae3c89c2610bc3d0a3ac8574e07 (patch) | |
tree | 572718b0943721e7f20b00ca60b837ccef0baee1 /drivers/platform | |
parent | MAINTAINERS: new panasonic-laptop maintainer (diff) | |
download | linux-6c328c347ac3dae3c89c2610bc3d0a3ac8574e07.tar.gz linux-6c328c347ac3dae3c89c2610bc3d0a3ac8574e07.tar.bz2 linux-6c328c347ac3dae3c89c2610bc3d0a3ac8574e07.zip |
platform/x86: i2c-multi-instantiate: Drop redundant ACPI_PTR()
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>
Link: https://lore.kernel.org/r/20201105110530.27888-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/i2c-multi-instantiate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/i2c-multi-instantiate.c b/drivers/platform/x86/i2c-multi-instantiate.c index 6acc8457866e..d92d9a98ec8f 100644 --- a/drivers/platform/x86/i2c-multi-instantiate.c +++ b/drivers/platform/x86/i2c-multi-instantiate.c @@ -189,7 +189,7 @@ MODULE_DEVICE_TABLE(acpi, i2c_multi_inst_acpi_ids); static struct platform_driver i2c_multi_inst_driver = { .driver = { .name = "I2C multi instantiate pseudo device driver", - .acpi_match_table = ACPI_PTR(i2c_multi_inst_acpi_ids), + .acpi_match_table = i2c_multi_inst_acpi_ids, }, .probe = i2c_multi_inst_probe, .remove = i2c_multi_inst_remove, |