Every caller of lirc_register_driver() passes their own fops and there are no users of lirc_dev_fop_write() in the kernel tree. Thus we can make fops mandatory and remove lirc_dev_fop_write().
Showing the changes to include/media/lirc_dev.h (1 of 2 files). Show all
Unified · Split
| @@ -210,7 +210,4 @@ unsigned int lirc_dev_fop_poll(struct file *file, poll_table *wait); · 209 unmodified lines | |||
| 210 | long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg); | 210 | long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg); |
| 211 | ssize_t lirc_dev_fop_read(struct file *file, char __user *buffer, size_t length, | 211 | ssize_t lirc_dev_fop_read(struct file *file, char __user *buffer, size_t length, |
| 212 | loff_t *ppos); | 212 | loff_t *ppos); |
| 213 | ssize_t lirc_dev_fop_write(struct file *file, const char __user *buffer, | ||
| 214 | size_t length, loff_t *ppos); | ||
| 215 | |||
| 216 | #endif | 213 | #endif |