Skip to content

Commit 0960941

Browse files
andy-shevJiri Kosina
authored andcommitted
HID: i2c-hid: acpi: 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> Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent a3836a0 commit 0960941

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hid/i2c-hid/i2c-hid-acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ static struct i2c_driver i2c_hid_acpi_driver = {
126126
.name = "i2c_hid_acpi",
127127
.pm = &i2c_hid_core_pm,
128128
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
129-
.acpi_match_table = ACPI_PTR(i2c_hid_acpi_match),
129+
.acpi_match_table = i2c_hid_acpi_match,
130130
},
131131

132132
.probe_new = i2c_hid_acpi_probe,

0 commit comments

Comments
 (0)