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 | * 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; · 3 unmodified lines | |||
| 202 | */ | 201 | */ |
| 203 | struct cros_ec_dev { | 202 | struct 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; |