platform/chrome: Use to_cros_ec_dev more broadly
authorGwendal Grignou <gwendal@chromium.org>
Wed, 30 May 2018 16:04:13 +0000 (09:04 -0700)
committerBenson Leung <bleung@chromium.org>
Wed, 30 May 2018 18:53:40 +0000 (11:53 -0700)
commit79a3d60300fc28def9b58dc30d86274b47052422
treed14080806a250711b650f1475d6263387d5c8622
parent683b647309fc8b4d9d176d2df994efc03f9f8073
platform/chrome: Use to_cros_ec_dev more broadly

Move to_cros_ec_dev macro to cros_ec.h and use it when the private ec
object is needed from device object.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_lightbar.c
drivers/platform/chrome/cros_ec_sysfs.c
drivers/platform/chrome/cros_ec_vbc.c
include/linux/mfd/cros_ec.h