aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/chrome/cros_ec_sysfs.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2018-05-30 09:04:13 -0700
committerBenson Leung <bleung@chromium.org>2018-05-30 11:53:40 -0700
commit79a3d60300fc28def9b58dc30d86274b47052422 (patch)
treed14080806a250711b650f1475d6263387d5c8622 /drivers/platform/chrome/cros_ec_sysfs.c
parentplatform/chrome: chromeos_laptop: fix touchpad button mapping on Celes (diff)
downloadlinux-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.c2
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,