diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2008-06-22 13:20:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:13:23 -0400 |
commit | b0ba0e3ab6f452321771325b7b5578f9a804f69e (patch) | |
tree | f247b63852e87c4f438888f4c1f0039fe1e48483 /drivers/media/dvb/ttpci | |
parent | 67778b322780200ac14e95c8089a0bd679a467d9 (diff) |
V4L/DVB (8130): split dvb_ringbuffer dual-use functions
split the suckers into kernel-memory and user-memory versions,
annotate both properly.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/ttpci')
-rw-r--r-- | drivers/media/dvb/ttpci/av7110.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/av7110_av.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/av7110_ca.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c index 6d7b9f6a6c75..dfe03cb42671 100644 --- a/drivers/media/dvb/ttpci/av7110.c +++ b/drivers/media/dvb/ttpci/av7110.c | |||
@@ -587,7 +587,7 @@ static void gpioirq(unsigned long data) | |||
587 | } | 587 | } |
588 | DVB_RINGBUFFER_SKIP(cibuf, 2); | 588 | DVB_RINGBUFFER_SKIP(cibuf, 2); |
589 | 589 | ||
590 | dvb_ringbuffer_read(cibuf, av7110->debi_virt, len, 0); | 590 | dvb_ringbuffer_read(cibuf, av7110->debi_virt, len); |
591 | 591 | ||
592 | iwdebi(av7110, DEBINOSWAP, TX_LEN, len, 2); | 592 | iwdebi(av7110, DEBINOSWAP, TX_LEN, len, 2); |
593 | iwdebi(av7110, DEBINOSWAP, IRQ_STATE_EXT, len, 2); | 593 | iwdebi(av7110, DEBINOSWAP, IRQ_STATE_EXT, len, 2); |
diff --git a/drivers/media/dvb/ttpci/av7110_av.c b/drivers/media/dvb/ttpci/av7110_av.c index ec55a968f204..184647ad1c7c 100644 --- a/drivers/media/dvb/ttpci/av7110_av.c +++ b/drivers/media/dvb/ttpci/av7110_av.c | |||
@@ -269,7 +269,7 @@ int av7110_pes_play(void *dest, struct dvb_ringbuffer *buf, int dlen) | |||
269 | return -1; | 269 | return -1; |
270 | } | 270 | } |
271 | 271 | ||
272 | dvb_ringbuffer_read(buf, dest, (size_t) blen, 0); | 272 | dvb_ringbuffer_read(buf, dest, (size_t) blen); |
273 | 273 | ||
274 | dprintk(2, "pread=0x%08lx, pwrite=0x%08lx\n", | 274 | dprintk(2, "pread=0x%08lx, pwrite=0x%08lx\n", |
275 | (unsigned long) buf->pread, (unsigned long) buf->pwrite); | 275 | (unsigned long) buf->pread, (unsigned long) buf->pwrite); |
diff --git a/drivers/media/dvb/ttpci/av7110_ca.c b/drivers/media/dvb/ttpci/av7110_ca.c index c58e3fc509ed..261135ded481 100644 --- a/drivers/media/dvb/ttpci/av7110_ca.c +++ b/drivers/media/dvb/ttpci/av7110_ca.c | |||
@@ -208,7 +208,7 @@ static ssize_t ci_ll_read(struct dvb_ringbuffer *cibuf, struct file *file, | |||
208 | return -EINVAL; | 208 | return -EINVAL; |
209 | DVB_RINGBUFFER_SKIP(cibuf, 2); | 209 | DVB_RINGBUFFER_SKIP(cibuf, 2); |
210 | 210 | ||
211 | return dvb_ringbuffer_read(cibuf, (u8 *)buf, len, 1); | 211 | return dvb_ringbuffer_read_user(cibuf, buf, len); |
212 | } | 212 | } |
213 | 213 | ||
214 | static int dvb_ca_open(struct inode *inode, struct file *file) | 214 | static int dvb_ca_open(struct inode *inode, struct file *file) |