HID: intel-ish-hid: consolidate ish wake up operation
authorEven Xu <even.xu@intel.com>
Fri, 21 Oct 2016 22:48:38 +0000 (15:48 -0700)
committerJiri Kosina <jkosina@suse.cz>
Sat, 5 Nov 2016 14:57:37 +0000 (15:57 +0100)
commitc2ed83f5426624beda0ecfcb17df033fe4bff7f7
treef6c7926a7d9e908f48a42e7de0c6e3a5b76ae2bf
parentcf0ea4da4c7df11f7a508b2f37518e0f117f3791
HID: intel-ish-hid: consolidate ish wake up operation

Same operations are done in ish_hw_start() and _ish_hw_reset() to
wakeup ISH device. Consolidate them by introducing a new function
ish_wakeup() and move the code there.

Signed-off-by: Even Xu <even.xu@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/intel-ish-hid/ipc/ipc.c