HID: i2c-hid: Use ACPI_COMPANION() directly
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 19 Jan 2018 14:35:04 +0000 (16:35 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 16 Feb 2018 12:19:12 +0000 (13:19 +0100)
commit8afede123bc15417656890ac3aafac3f2d6539a4
tree89b926b23bca4c6ac695142ad941dfd5bf55dcd5
parent183b6366cf473ff0e706a6751adc082faa44843d
HID: i2c-hid: Use ACPI_COMPANION() directly

Instead of doing additional checks and functional calls,
just get ACPI companion device directly.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid.c