aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/rc/lirc_dev.c4
-rw-r--r--include/media/lirc_dev.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c
index 756656e17bdd..6b9fc74f2e1d 100644
--- a/drivers/media/rc/lirc_dev.c
+++ b/drivers/media/rc/lirc_dev.c
@@ -627,7 +627,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
627EXPORT_SYMBOL(lirc_dev_fop_ioctl); 627EXPORT_SYMBOL(lirc_dev_fop_ioctl);
628 628
629ssize_t lirc_dev_fop_read(struct file *file, 629ssize_t lirc_dev_fop_read(struct file *file,
630 char *buffer, 630 char __user *buffer,
631 size_t length, 631 size_t length,
632 loff_t *ppos) 632 loff_t *ppos)
633{ 633{
@@ -747,7 +747,7 @@ void *lirc_get_pdata(struct file *file)
747EXPORT_SYMBOL(lirc_get_pdata); 747EXPORT_SYMBOL(lirc_get_pdata);
748 748
749 749
750ssize_t lirc_dev_fop_write(struct file *file, const char *buffer, 750ssize_t lirc_dev_fop_write(struct file *file, const char __user *buffer,
751 size_t length, loff_t *ppos) 751 size_t length, loff_t *ppos)
752{ 752{
753 struct irctl *ir = irctls[iminor(file->f_dentry->d_inode)]; 753 struct irctl *ir = irctls[iminor(file->f_dentry->d_inode)];
diff --git a/include/media/lirc_dev.h b/include/media/lirc_dev.h
index 54780a560d0e..630e702c9511 100644
--- a/include/media/lirc_dev.h
+++ b/include/media/lirc_dev.h
@@ -217,9 +217,9 @@ int lirc_dev_fop_open(struct inode *inode, struct file *file);
217int lirc_dev_fop_close(struct inode *inode, struct file *file); 217int lirc_dev_fop_close(struct inode *inode, struct file *file);
218unsigned int lirc_dev_fop_poll(struct file *file, poll_table *wait); 218unsigned int lirc_dev_fop_poll(struct file *file, poll_table *wait);
219long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 219long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
220ssize_t lirc_dev_fop_read(struct file *file, char *buffer, size_t length, 220ssize_t lirc_dev_fop_read(struct file *file, char __user *buffer, size_t length,
221 loff_t *ppos); 221 loff_t *ppos);
222ssize_t lirc_dev_fop_write(struct file *file, const char *buffer, size_t length, 222ssize_t lirc_dev_fop_write(struct file *file, const char __user *buffer,
223 loff_t *ppos); 223 size_t length, loff_t *ppos);
224 224
225#endif 225#endif