diff options
Diffstat (limited to 'drivers/media/video/cx88/cx88-video.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-video.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c index 4fba913edb1..b755bf100a2 100644 --- a/drivers/media/video/cx88/cx88-video.c +++ b/drivers/media/video/cx88/cx88-video.c | |||
@@ -78,7 +78,7 @@ MODULE_PARM_DESC(vid_limit,"capture memory limit in megabytes"); | |||
78 | /* ------------------------------------------------------------------- */ | 78 | /* ------------------------------------------------------------------- */ |
79 | /* static data */ | 79 | /* static data */ |
80 | 80 | ||
81 | static struct cx8800_fmt formats[] = { | 81 | static const struct cx8800_fmt formats[] = { |
82 | { | 82 | { |
83 | .name = "8 bpp, gray", | 83 | .name = "8 bpp, gray", |
84 | .fourcc = V4L2_PIX_FMT_GREY, | 84 | .fourcc = V4L2_PIX_FMT_GREY, |
@@ -142,7 +142,7 @@ static struct cx8800_fmt formats[] = { | |||
142 | }, | 142 | }, |
143 | }; | 143 | }; |
144 | 144 | ||
145 | static struct cx8800_fmt* format_by_fourcc(unsigned int fourcc) | 145 | static const struct cx8800_fmt* format_by_fourcc(unsigned int fourcc) |
146 | { | 146 | { |
147 | unsigned int i; | 147 | unsigned int i; |
148 | 148 | ||
@@ -159,7 +159,7 @@ static const struct v4l2_queryctrl no_ctl = { | |||
159 | .flags = V4L2_CTRL_FLAG_DISABLED, | 159 | .flags = V4L2_CTRL_FLAG_DISABLED, |
160 | }; | 160 | }; |
161 | 161 | ||
162 | static struct cx88_ctrl cx8800_ctls[] = { | 162 | static const struct cx88_ctrl cx8800_ctls[] = { |
163 | /* --- video --- */ | 163 | /* --- video --- */ |
164 | { | 164 | { |
165 | .v = { | 165 | .v = { |
@@ -288,7 +288,7 @@ static struct cx88_ctrl cx8800_ctls[] = { | |||
288 | .shift = 0, | 288 | .shift = 0, |
289 | } | 289 | } |
290 | }; | 290 | }; |
291 | static const int CX8800_CTLS = ARRAY_SIZE(cx8800_ctls); | 291 | enum { CX8800_CTLS = ARRAY_SIZE(cx8800_ctls) }; |
292 | 292 | ||
293 | /* Must be sorted from low to high control ID! */ | 293 | /* Must be sorted from low to high control ID! */ |
294 | const u32 cx88_user_ctrls[] = { | 294 | const u32 cx88_user_ctrls[] = { |
@@ -306,7 +306,7 @@ const u32 cx88_user_ctrls[] = { | |||
306 | }; | 306 | }; |
307 | EXPORT_SYMBOL(cx88_user_ctrls); | 307 | EXPORT_SYMBOL(cx88_user_ctrls); |
308 | 308 | ||
309 | static const u32 *ctrl_classes[] = { | 309 | static const u32 * const ctrl_classes[] = { |
310 | cx88_user_ctrls, | 310 | cx88_user_ctrls, |
311 | NULL | 311 | NULL |
312 | }; | 312 | }; |
@@ -710,7 +710,7 @@ static void buffer_release(struct videobuf_queue *q, struct videobuf_buffer *vb) | |||
710 | cx88_free_buffer(q,buf); | 710 | cx88_free_buffer(q,buf); |
711 | } | 711 | } |
712 | 712 | ||
713 | static struct videobuf_queue_ops cx8800_video_qops = { | 713 | static const struct videobuf_queue_ops cx8800_video_qops = { |
714 | .buf_setup = buffer_setup, | 714 | .buf_setup = buffer_setup, |
715 | .buf_prepare = buffer_prepare, | 715 | .buf_prepare = buffer_prepare, |
716 | .buf_queue = buffer_queue, | 716 | .buf_queue = buffer_queue, |
@@ -944,7 +944,7 @@ video_mmap(struct file *file, struct vm_area_struct * vma) | |||
944 | 944 | ||
945 | int cx88_get_control (struct cx88_core *core, struct v4l2_control *ctl) | 945 | int cx88_get_control (struct cx88_core *core, struct v4l2_control *ctl) |
946 | { | 946 | { |
947 | struct cx88_ctrl *c = NULL; | 947 | const struct cx88_ctrl *c = NULL; |
948 | u32 value; | 948 | u32 value; |
949 | int i; | 949 | int i; |
950 | 950 | ||
@@ -976,7 +976,7 @@ EXPORT_SYMBOL(cx88_get_control); | |||
976 | 976 | ||
977 | int cx88_set_control(struct cx88_core *core, struct v4l2_control *ctl) | 977 | int cx88_set_control(struct cx88_core *core, struct v4l2_control *ctl) |
978 | { | 978 | { |
979 | struct cx88_ctrl *c = NULL; | 979 | const struct cx88_ctrl *c = NULL; |
980 | u32 value,mask; | 980 | u32 value,mask; |
981 | int i; | 981 | int i; |
982 | 982 | ||
@@ -1072,7 +1072,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void *priv, | |||
1072 | struct v4l2_format *f) | 1072 | struct v4l2_format *f) |
1073 | { | 1073 | { |
1074 | struct cx88_core *core = ((struct cx8800_fh *)priv)->dev->core; | 1074 | struct cx88_core *core = ((struct cx8800_fh *)priv)->dev->core; |
1075 | struct cx8800_fmt *fmt; | 1075 | const struct cx8800_fmt *fmt; |
1076 | enum v4l2_field field; | 1076 | enum v4l2_field field; |
1077 | unsigned int maxw, maxh; | 1077 | unsigned int maxw, maxh; |
1078 | 1078 | ||
@@ -1247,7 +1247,7 @@ static int vidioc_s_std (struct file *file, void *priv, v4l2_std_id *tvnorms) | |||
1247 | /* only one input in this sample driver */ | 1247 | /* only one input in this sample driver */ |
1248 | int cx88_enum_input (struct cx88_core *core,struct v4l2_input *i) | 1248 | int cx88_enum_input (struct cx88_core *core,struct v4l2_input *i) |
1249 | { | 1249 | { |
1250 | static const char *iname[] = { | 1250 | static const char * const iname[] = { |
1251 | [ CX88_VMUX_COMPOSITE1 ] = "Composite1", | 1251 | [ CX88_VMUX_COMPOSITE1 ] = "Composite1", |
1252 | [ CX88_VMUX_COMPOSITE2 ] = "Composite2", | 1252 | [ CX88_VMUX_COMPOSITE2 ] = "Composite2", |
1253 | [ CX88_VMUX_COMPOSITE3 ] = "Composite3", | 1253 | [ CX88_VMUX_COMPOSITE3 ] = "Composite3", |
@@ -1579,7 +1579,7 @@ static void cx8800_vid_timeout(unsigned long data) | |||
1579 | spin_unlock_irqrestore(&dev->slock,flags); | 1579 | spin_unlock_irqrestore(&dev->slock,flags); |
1580 | } | 1580 | } |
1581 | 1581 | ||
1582 | static char *cx88_vid_irqs[32] = { | 1582 | static const char *cx88_vid_irqs[32] = { |
1583 | "y_risci1", "u_risci1", "v_risci1", "vbi_risc1", | 1583 | "y_risci1", "u_risci1", "v_risci1", "vbi_risc1", |
1584 | "y_risci2", "u_risci2", "v_risci2", "vbi_risc2", | 1584 | "y_risci2", "u_risci2", "v_risci2", "vbi_risc2", |
1585 | "y_oflow", "u_oflow", "v_oflow", "vbi_oflow", | 1585 | "y_oflow", "u_oflow", "v_oflow", "vbi_oflow", |
@@ -1724,7 +1724,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = { | |||
1724 | 1724 | ||
1725 | static struct video_device cx8800_vbi_template; | 1725 | static struct video_device cx8800_vbi_template; |
1726 | 1726 | ||
1727 | static struct video_device cx8800_video_template = { | 1727 | static const struct video_device cx8800_video_template = { |
1728 | .name = "cx8800-video", | 1728 | .name = "cx8800-video", |
1729 | .fops = &video_fops, | 1729 | .fops = &video_fops, |
1730 | .ioctl_ops = &video_ioctl_ops, | 1730 | .ioctl_ops = &video_ioctl_ops, |
@@ -1759,7 +1759,7 @@ static const struct v4l2_ioctl_ops radio_ioctl_ops = { | |||
1759 | #endif | 1759 | #endif |
1760 | }; | 1760 | }; |
1761 | 1761 | ||
1762 | static struct video_device cx8800_radio_template = { | 1762 | static const struct video_device cx8800_radio_template = { |
1763 | .name = "cx8800-radio", | 1763 | .name = "cx8800-radio", |
1764 | .fops = &radio_fops, | 1764 | .fops = &radio_fops, |
1765 | .ioctl_ops = &radio_ioctl_ops, | 1765 | .ioctl_ops = &radio_ioctl_ops, |
@@ -1886,7 +1886,7 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev, | |||
1886 | switch (core->boardnr) { | 1886 | switch (core->boardnr) { |
1887 | case CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD: | 1887 | case CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD: |
1888 | case CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD: { | 1888 | case CX88_BOARD_DVICO_FUSIONHDTV_7_GOLD: { |
1889 | static struct i2c_board_info rtc_info = { | 1889 | static const struct i2c_board_info rtc_info = { |
1890 | I2C_BOARD_INFO("isl1208", 0x6f) | 1890 | I2C_BOARD_INFO("isl1208", 0x6f) |
1891 | }; | 1891 | }; |
1892 | 1892 | ||
@@ -2083,7 +2083,7 @@ static int cx8800_resume(struct pci_dev *pci_dev) | |||
2083 | 2083 | ||
2084 | /* ----------------------------------------------------------- */ | 2084 | /* ----------------------------------------------------------- */ |
2085 | 2085 | ||
2086 | static struct pci_device_id cx8800_pci_tbl[] = { | 2086 | static const struct pci_device_id cx8800_pci_tbl[] = { |
2087 | { | 2087 | { |
2088 | .vendor = 0x14f1, | 2088 | .vendor = 0x14f1, |
2089 | .device = 0x8800, | 2089 | .device = 0x8800, |