|
@@ -391,7 +391,7 @@ unsigned long vb2_get_unmapped_area(struct vb2_queue *q,
|
|
|
unsigned int vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait);
|
|
|
size_t vb2_read(struct vb2_queue *q, char __user *data, size_t count,
|
|
|
loff_t *ppos, int nonblock);
|
|
|
-size_t vb2_write(struct vb2_queue *q, char __user *data, size_t count,
|
|
|
+size_t vb2_write(struct vb2_queue *q, const char __user *data, size_t count,
|
|
|
loff_t *ppos, int nonblock);
|
|
|
|
|
|
/**
|
|
@@ -491,7 +491,7 @@ int vb2_ioctl_expbuf(struct file *file, void *priv,
|
|
|
|
|
|
int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma);
|
|
|
int vb2_fop_release(struct file *file);
|
|
|
-ssize_t vb2_fop_write(struct file *file, char __user *buf,
|
|
|
+ssize_t vb2_fop_write(struct file *file, const char __user *buf,
|
|
|
size_t count, loff_t *ppos);
|
|
|
ssize_t vb2_fop_read(struct file *file, char __user *buf,
|
|
|
size_t count, loff_t *ppos);
|