]> git.baikalelectronics.ru Git - kernel.git/commit
HID: i2c-hid: acpi: Get ACPI companion only once and reuse it
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 26 Feb 2021 19:32:22 +0000 (21:32 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 8 Mar 2021 09:43:34 +0000 (10:43 +0100)
commit2530ba5ab86aa2f9d159d72a96b5cd9d602031e4
treed2834abdafbee9ff0d40460f78f7257971a6b299
parenta8b021c87dfe838ba3a42388903f5296448458e3
HID: i2c-hid: acpi: Get ACPI companion only once and reuse it

Currently the ACPI companion and handle are retrieved and checked
a few times in different functions. Instead get ACPI companion only
once and reuse it everywhere.

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