platform/chrome: cros_ec_sysfs: introduce to_cros_ec_dev define.
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 23 Mar 2018 17:42:43 +0000 (18:42 +0100)
committerBenson Leung <bleung@chromium.org>
Wed, 11 Apr 2018 05:22:49 +0000 (22:22 -0700)
commit93afebbe694ecd0a22f065af2e2565e2dbd49025
treeb4acaa7dd9393030a0ce081ecc9f20cf343ab101
parent311394248ca539c12b33d396b2944e03cd0d6bfc
platform/chrome: cros_ec_sysfs: introduce to_cros_ec_dev define.

Add a define to get the cros_ec_dev from device and use it.

Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_sysfs.c