platform/x86: intel-hid: simplify enabling/disabling HID events
authorMichał Kępień <kernel@kempniu.pl>
Fri, 24 Feb 2017 10:33:06 +0000 (11:33 +0100)
committerDarren Hart <dvhart@infradead.org>
Wed, 15 Mar 2017 05:57:09 +0000 (22:57 -0700)
commit93ed249075599497fa0667d1b9873d66831fd0e0
treea22c3bb4db3b1b7f1c3c18e884d03b852fb22c3f
parentae50dfd61665086e617cc9e554a1285d52765670
platform/x86: intel-hid: simplify enabling/disabling HID events

ACPI method HDSM takes a single integer argument.  Use
acpi_execute_simple_method() instead of acpi_evaluate_object() for
calling that ACPI method to simplify code and reduce the number of local
variables inside intel_hid_set_enable().

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-and-tested-by: Alex Hung <alex.hung@canonical.com>
drivers/platform/x86/intel-hid.c