aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>2019-09-02 05:53:03 -0400
committerLee Jones <lee.jones@linaro.org>2019-09-02 06:33:27 -0400
commit459aedb9a5d4b92e4aee343ee8ee5aeca8e1d93a (patch)
treea281ebec665528506d8a1f21baccc5535f8e9c0a /include
parenteda2e30c6684d67288edb841c6125d48c608a242 (diff)
mfd: cros_ec: Switch to use the new cros-ec-chardev driver
With the purpose of remove the things that far extends the bounds of what a MFD was designed to do, instantiate the new platform misc cros-ec-chardev driver and get rid of all the unneeded code. After this patch the misc chardev driver is a sub-device of the MFD, and all the new file operations should be implemented there. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Gwendal Grignou <gwendal@chromium.org> Tested-by: Gwendal Grignou <gwendal@chromium.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/cros_ec.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h
index bcccda0257ff..569428ad1cb1 100644
--- a/include/linux/mfd/cros_ec.h
+++ b/include/linux/mfd/cros_ec.h
@@ -192,7 +192,6 @@ struct cros_ec_debugfs;
192/** 192/**
193 * struct cros_ec_dev - ChromeOS EC device entry point. 193 * struct cros_ec_dev - ChromeOS EC device entry point.
194 * @class_dev: Device structure used in sysfs. 194 * @class_dev: Device structure used in sysfs.
195 * @cdev: Character device structure in /dev.
196 * @ec_dev: cros_ec_device structure to talk to the physical device. 195 * @ec_dev: cros_ec_device structure to talk to the physical device.
197 * @dev: Pointer to the platform device. 196 * @dev: Pointer to the platform device.
198 * @debug_info: cros_ec_debugfs structure for debugging information. 197 * @debug_info: cros_ec_debugfs structure for debugging information.
@@ -202,7 +201,6 @@ struct cros_ec_debugfs;
202 */ 201 */
203struct cros_ec_dev { 202struct cros_ec_dev {
204 struct device class_dev; 203 struct device class_dev;
205 struct cdev cdev;
206 struct cros_ec_device *ec_dev; 204 struct cros_ec_device *ec_dev;
207 struct device *dev; 205 struct device *dev;
208 struct cros_ec_debugfs *debug_info; 206 struct cros_ec_debugfs *debug_info;