diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-12-27 10:22:46 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:17:18 -0500 |
commit | b9218f2f15cdff8991ba041993bf40962c49fdd0 (patch) | |
tree | 98e7d9e2a5e92a9a51e8b3408e750b0c508f929d /drivers/media/video/saa7134 | |
parent | a519d70e0cf346e946202ffcbeaf57a1748d0c03 (diff) |
[media] saa6588: rename rds.h to saa6588.h
The naming of the media/rds.h header suggested that it was a generic
RDS header, when in fact it is just a saa6588 module API that is
internal to the kernel.
Rename the header and the struct and defines in it to make this clear.
Also removed the header include in radio-si470x.h (not used anymore)
and from ioctl-number.txt (it's internal to the kernel and never called
from userspace).
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7134')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-video.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/video/saa7134/saa7134-video.c b/drivers/media/video/saa7134/saa7134-video.c index ad22be27bd38..ee4ea5f001a8 100644 --- a/drivers/media/video/saa7134/saa7134-video.c +++ b/drivers/media/video/saa7134/saa7134-video.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include "saa7134-reg.h" | 30 | #include "saa7134-reg.h" |
31 | #include "saa7134.h" | 31 | #include "saa7134.h" |
32 | #include <media/v4l2-common.h> | 32 | #include <media/v4l2-common.h> |
33 | #include <media/rds.h> | 33 | #include <media/saa6588.h> |
34 | 34 | ||
35 | /* ------------------------------------------------------------------ */ | 35 | /* ------------------------------------------------------------------ */ |
36 | 36 | ||
@@ -1459,7 +1459,7 @@ static int video_release(struct file *file) | |||
1459 | { | 1459 | { |
1460 | struct saa7134_fh *fh = file->private_data; | 1460 | struct saa7134_fh *fh = file->private_data; |
1461 | struct saa7134_dev *dev = fh->dev; | 1461 | struct saa7134_dev *dev = fh->dev; |
1462 | struct rds_command cmd; | 1462 | struct saa6588_command cmd; |
1463 | unsigned long flags; | 1463 | unsigned long flags; |
1464 | 1464 | ||
1465 | /* turn off overlay */ | 1465 | /* turn off overlay */ |
@@ -1494,7 +1494,7 @@ static int video_release(struct file *file) | |||
1494 | 1494 | ||
1495 | saa_call_all(dev, core, s_power, 0); | 1495 | saa_call_all(dev, core, s_power, 0); |
1496 | if (fh->radio) | 1496 | if (fh->radio) |
1497 | saa_call_all(dev, core, ioctl, RDS_CMD_CLOSE, &cmd); | 1497 | saa_call_all(dev, core, ioctl, SAA6588_CMD_CLOSE, &cmd); |
1498 | 1498 | ||
1499 | /* free stuff */ | 1499 | /* free stuff */ |
1500 | videobuf_mmap_free(&fh->cap); | 1500 | videobuf_mmap_free(&fh->cap); |
@@ -1520,14 +1520,14 @@ static ssize_t radio_read(struct file *file, char __user *data, | |||
1520 | { | 1520 | { |
1521 | struct saa7134_fh *fh = file->private_data; | 1521 | struct saa7134_fh *fh = file->private_data; |
1522 | struct saa7134_dev *dev = fh->dev; | 1522 | struct saa7134_dev *dev = fh->dev; |
1523 | struct rds_command cmd; | 1523 | struct saa6588_command cmd; |
1524 | 1524 | ||
1525 | cmd.block_count = count/3; | 1525 | cmd.block_count = count/3; |
1526 | cmd.buffer = data; | 1526 | cmd.buffer = data; |
1527 | cmd.instance = file; | 1527 | cmd.instance = file; |
1528 | cmd.result = -ENODEV; | 1528 | cmd.result = -ENODEV; |
1529 | 1529 | ||
1530 | saa_call_all(dev, core, ioctl, RDS_CMD_READ, &cmd); | 1530 | saa_call_all(dev, core, ioctl, SAA6588_CMD_READ, &cmd); |
1531 | 1531 | ||
1532 | return cmd.result; | 1532 | return cmd.result; |
1533 | } | 1533 | } |
@@ -1536,12 +1536,12 @@ static unsigned int radio_poll(struct file *file, poll_table *wait) | |||
1536 | { | 1536 | { |
1537 | struct saa7134_fh *fh = file->private_data; | 1537 | struct saa7134_fh *fh = file->private_data; |
1538 | struct saa7134_dev *dev = fh->dev; | 1538 | struct saa7134_dev *dev = fh->dev; |
1539 | struct rds_command cmd; | 1539 | struct saa6588_command cmd; |
1540 | 1540 | ||
1541 | cmd.instance = file; | 1541 | cmd.instance = file; |
1542 | cmd.event_list = wait; | 1542 | cmd.event_list = wait; |
1543 | cmd.result = -ENODEV; | 1543 | cmd.result = -ENODEV; |
1544 | saa_call_all(dev, core, ioctl, RDS_CMD_POLL, &cmd); | 1544 | saa_call_all(dev, core, ioctl, SAA6588_CMD_POLL, &cmd); |
1545 | 1545 | ||
1546 | return cmd.result; | 1546 | return cmd.result; |
1547 | } | 1547 | } |