diff options
author | 2018-05-30 09:04:13 -0700 | |
---|---|---|
committer | 2018-05-30 11:53:40 -0700 | |
commit | 79a3d60300fc28def9b58dc30d86274b47052422 (patch) | |
tree | d14080806a250711b650f1475d6263387d5c8622 /drivers/platform/chrome/cros_ec_sysfs.c | |
parent | platform/chrome: chromeos_laptop: fix touchpad button mapping on Celes (diff) | |
download | linux-dev-79a3d60300fc28def9b58dc30d86274b47052422.tar.xz linux-dev-79a3d60300fc28def9b58dc30d86274b47052422.zip |
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>
Diffstat (limited to 'drivers/platform/chrome/cros_ec_sysfs.c')
-rw-r--r-- | drivers/platform/chrome/cros_ec_sysfs.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/platform/chrome/cros_ec_sysfs.c b/drivers/platform/chrome/cros_ec_sysfs.c index 5a6db3fe213a..f34a50121064 100644 --- a/drivers/platform/chrome/cros_ec_sysfs.c +++ b/drivers/platform/chrome/cros_ec_sysfs.c @@ -34,8 +34,6 @@ #include <linux/types.h> #include <linux/uaccess.h> -#define to_cros_ec_dev(dev) container_of(dev, struct cros_ec_dev, class_dev) - /* Accessor functions */ static ssize_t reboot_show(struct device *dev, |