platform/chrome: cros_ec_ishtp: fix crash during suspend
authorHyungwoo Yang <hyungwoo.yang@intel.com>
Thu, 30 May 2019 04:03:54 +0000 (21:03 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 29 Jul 2019 11:18:45 +0000 (13:18 +0200)
commit9cdde85804833af77c6afbf7c53f0d959c42eb9f
tree301e3ff434d2dcbd5d5a88170f88c4607e28e724
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b
platform/chrome: cros_ec_ishtp: fix crash during suspend

Kernel crashes during suspend due to wrong conversion in
suspend and resume functions.

Use the proper helper to get ishtp_cl_device instance.

Cc: <stable@vger.kernel.org> # 5.2.x: b12bbdc5: HID: intel-ish-hid: fix wrong driver_data usage
Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/cros_ec_ishtp.c