]> git.baikalelectronics.ru Git - kernel.git/commit
HID: i2c-hid: acpi: Drop redundant ACPI_PTR()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 26 Feb 2021 19:32:25 +0000 (21:32 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 8 Mar 2021 09:43:34 +0000 (10:43 +0100)
commit5497f48d3c186297fae5224d97f49309f435d596
tree9d5921dea4b9af2b6d9a99df58759ceea6859a02
parent2c88dc0be7f0299c4dfe0ed237b288a99e67e9ba
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>
drivers/hid/i2c-hid/i2c-hid-acpi.c