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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -192,7 +192,6 @@ struct cros_ec_debugfs; · 191 unmodified lines | ||
| 192 | 192 | /** |
| 193 | 193 | * struct cros_ec_dev - ChromeOS EC device entry point. |
| 194 | 194 | * @class_dev: Device structure used in sysfs. |
| 195 | − * @cdev: Character device structure in /dev. | |
| 196 | 195 | * @ec_dev: cros_ec_device structure to talk to the physical device. |
| 197 | 196 | * @dev: Pointer to the platform device. |
| 198 | 197 | * @debug_info: cros_ec_debugfs structure for debugging information. |
| @@ -202,7 +201,6 @@ struct cros_ec_debugfs; · 3 unmodified lines | ||
| 202 | 201 | */ |
| 203 | 202 | struct cros_ec_dev { |
| 204 | 203 | struct device class_dev; |
| 205 | − struct cdev cdev; | |
| 206 | 204 | struct cros_ec_device *ec_dev; |
| 207 | 205 | struct device *dev; |
| 208 | 206 | struct cros_ec_debugfs *debug_info; |