platform/chrome: lightbar: Get drvdata from parent in suspend/resume
authorRajat Jain <rajatja@google.com>
Thu, 27 Jun 2019 21:47:38 +0000 (14:47 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 28 Jun 2019 10:37:21 +0000 (12:37 +0200)
commitc18e6ea1014ca1ade0030aca5e80af33c8873e1e
tree83b353141d21e3550f785e1f7142adc395a9a60a
parent0451cc8ce272f50f9fb6569b0ecdedee6e997cea
platform/chrome: lightbar: Get drvdata from parent in suspend/resume

The lightbar driver never assigned the drvdata in probe method, and
thus there is nothing there. Need to get the ec_dev from the parent's
drvdata.

Signed-off-by: Rajat Jain <rajatja@google.com>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/cros_ec_lightbar.c