aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa7134-video.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-12-11 10:56:23 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:03:31 -0500
commit2c10e8a8985e41addbbbe54b403418c27462f854 (patch)
tree077be89c28deb6848218bd78a690d46426ef3969 /drivers/media/video/saa7134/saa7134-video.c
parenta9622391acbcdb124b55eb674dc5196eb55dc105 (diff)
V4L/DVB (6793): Convert saa7134-empress to video_ioctl2
saa7134 were converted to video_ioctl2, but saa7134_empress weren't. This broke saa7134-empress, since it were dependent of saa7134_common_ioctl. With the conversion, the module had a size decrease of 436 bytes on x86_64: text data bss dec hex filename 5196 4912 4 10112 2780 old/saa7134-empress.ko 4760 4912 4 9676 25cc new/saa7134-empress.ko Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-video.c')
-rw-r--r--drivers/media/video/saa7134/saa7134-video.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/media/video/saa7134/saa7134-video.c b/drivers/media/video/saa7134/saa7134-video.c
index 6a29b75beaa6..9705f1f39509 100644
--- a/drivers/media/video/saa7134/saa7134-video.c
+++ b/drivers/media/video/saa7134/saa7134-video.c
@@ -217,12 +217,6 @@ static struct saa7134_format formats[] = {
217 .vbi_v_start_1 = 273, \ 217 .vbi_v_start_1 = 273, \
218 .src_timing = 7 218 .src_timing = 7
219 219
220#define SAA7134_NORMS \
221 V4L2_STD_PAL | V4L2_STD_PAL_N | \
222 V4L2_STD_PAL_Nc | V4L2_STD_SECAM | \
223 V4L2_STD_NTSC | V4L2_STD_PAL_M | \
224 V4L2_STD_PAL_60
225
226static struct saa7134_tvnorm tvnorms[] = { 220static struct saa7134_tvnorm tvnorms[] = {
227 { 221 {
228 .name = "PAL", /* autodetect */ 222 .name = "PAL", /* autodetect */
@@ -1123,8 +1117,7 @@ static struct videobuf_queue_ops video_qops = {
1123 1117
1124/* ------------------------------------------------------------------ */ 1118/* ------------------------------------------------------------------ */
1125 1119
1126static int saa7134_g_ctrl(struct file *file, void *priv, 1120int saa7134_g_ctrl(struct file *file, void *priv, struct v4l2_control *c)
1127 struct v4l2_control *c)
1128{ 1121{
1129 struct saa7134_fh *fh = priv; 1122 struct saa7134_fh *fh = priv;
1130 struct saa7134_dev *dev = fh->dev; 1123 struct saa7134_dev *dev = fh->dev;
@@ -1173,8 +1166,7 @@ static int saa7134_g_ctrl(struct file *file, void *priv,
1173 return 0; 1166 return 0;
1174} 1167}
1175 1168
1176static int saa7134_s_ctrl(struct file *file, void *f, 1169int saa7134_s_ctrl(struct file *file, void *f, struct v4l2_control *c)
1177 struct v4l2_control *c)
1178{ 1170{
1179 const struct v4l2_queryctrl* ctrl; 1171 const struct v4l2_queryctrl* ctrl;
1180 struct saa7134_fh *fh = f; 1172 struct saa7134_fh *fh = f;
@@ -1680,8 +1672,7 @@ static int saa7134_s_fmt_overlay(struct file *file, void *priv,
1680 return 0; 1672 return 0;
1681} 1673}
1682 1674
1683static int saa7134_queryctrl(struct file *file, void *priv, 1675int saa7134_queryctrl(struct file *file, void *priv, struct v4l2_queryctrl *c)
1684 struct v4l2_queryctrl *c)
1685{ 1676{
1686 const struct v4l2_queryctrl *ctrl; 1677 const struct v4l2_queryctrl *ctrl;
1687 1678