diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-12-11 10:56:23 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:31 -0500 |
commit | 2c10e8a8985e41addbbbe54b403418c27462f854 (patch) | |
tree | 077be89c28deb6848218bd78a690d46426ef3969 /drivers/media/video/saa7134/saa7134.h | |
parent | a9622391acbcdb124b55eb674dc5196eb55dc105 (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.h')
-rw-r--r-- | drivers/media/video/saa7134/saa7134.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h index 8fb95094ba84..3e77aeb7974f 100644 --- a/drivers/media/video/saa7134/saa7134.h +++ b/drivers/media/video/saa7134/saa7134.h | |||
@@ -566,6 +566,12 @@ struct saa7134_dev { | |||
566 | 566 | ||
567 | #define saa_wait(us) { udelay(us); } | 567 | #define saa_wait(us) { udelay(us); } |
568 | 568 | ||
569 | #define SAA7134_NORMS (\ | ||
570 | V4L2_STD_PAL | V4L2_STD_PAL_N | \ | ||
571 | V4L2_STD_PAL_Nc | V4L2_STD_SECAM | \ | ||
572 | V4L2_STD_NTSC | V4L2_STD_PAL_M | \ | ||
573 | V4L2_STD_PAL_60) | ||
574 | |||
569 | /* ----------------------------------------------------------- */ | 575 | /* ----------------------------------------------------------- */ |
570 | /* saa7134-core.c */ | 576 | /* saa7134-core.c */ |
571 | 577 | ||
@@ -629,12 +635,13 @@ extern unsigned int video_debug; | |||
629 | extern struct video_device saa7134_video_template; | 635 | extern struct video_device saa7134_video_template; |
630 | extern struct video_device saa7134_radio_template; | 636 | extern struct video_device saa7134_radio_template; |
631 | 637 | ||
638 | int saa7134_g_ctrl(struct file *file, void *priv, struct v4l2_control *c); | ||
639 | int saa7134_s_ctrl(struct file *file, void *f, struct v4l2_control *c); | ||
640 | int saa7134_queryctrl(struct file *file, void *priv, struct v4l2_queryctrl *c); | ||
641 | |||
632 | int saa7134_videoport_init(struct saa7134_dev *dev); | 642 | int saa7134_videoport_init(struct saa7134_dev *dev); |
633 | void saa7134_set_tvnorm_hw(struct saa7134_dev *dev); | 643 | void saa7134_set_tvnorm_hw(struct saa7134_dev *dev); |
634 | 644 | ||
635 | int saa7134_common_ioctl(struct saa7134_dev *dev, | ||
636 | unsigned int cmd, void *arg); | ||
637 | |||
638 | int saa7134_video_init1(struct saa7134_dev *dev); | 645 | int saa7134_video_init1(struct saa7134_dev *dev); |
639 | int saa7134_video_init2(struct saa7134_dev *dev); | 646 | int saa7134_video_init2(struct saa7134_dev *dev); |
640 | void saa7134_irq_video_signalchange(struct saa7134_dev *dev); | 647 | void saa7134_irq_video_signalchange(struct saa7134_dev *dev); |