aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-11-22 12:44:38 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-12-03 08:27:08 -0500
commit083206fc3f77be550ad3d7666b32b1d360cfe53e (patch)
tree4a2de980133a367827c9f13fb9349791fc703823
parent22dbec265c4fbea4cecc37bcbdbb730c0bc639ff (diff)
[media] cx231xx: constify cx2341x_handler_ops structures
The cx2341x_handler_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r--drivers/media/pci/cx18/cx18-controls.c2
-rw-r--r--drivers/media/pci/cx18/cx18-controls.h2
-rw-r--r--drivers/media/pci/ivtv/ivtv-controls.c2
-rw-r--r--drivers/media/pci/ivtv/ivtv-controls.h2
-rw-r--r--drivers/media/usb/cx231xx/cx231xx-417.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/pci/cx18/cx18-controls.c b/drivers/media/pci/cx18/cx18-controls.c
index 71227a155cba..adb5a8c72c06 100644
--- a/drivers/media/pci/cx18/cx18-controls.c
+++ b/drivers/media/pci/cx18/cx18-controls.c
@@ -126,7 +126,7 @@ static int cx18_s_audio_mode(struct cx2341x_handler *cxhdl, u32 val)
126 return 0; 126 return 0;
127} 127}
128 128
129struct cx2341x_handler_ops cx18_cxhdl_ops = { 129const struct cx2341x_handler_ops cx18_cxhdl_ops = {
130 .s_audio_mode = cx18_s_audio_mode, 130 .s_audio_mode = cx18_s_audio_mode,
131 .s_audio_sampling_freq = cx18_s_audio_sampling_freq, 131 .s_audio_sampling_freq = cx18_s_audio_sampling_freq,
132 .s_video_encoding = cx18_s_video_encoding, 132 .s_video_encoding = cx18_s_video_encoding,
diff --git a/drivers/media/pci/cx18/cx18-controls.h b/drivers/media/pci/cx18/cx18-controls.h
index cb5dfc7b2054..326794887863 100644
--- a/drivers/media/pci/cx18/cx18-controls.h
+++ b/drivers/media/pci/cx18/cx18-controls.h
@@ -21,4 +21,4 @@
21 * 02111-1307 USA 21 * 02111-1307 USA
22 */ 22 */
23 23
24extern struct cx2341x_handler_ops cx18_cxhdl_ops; 24extern const struct cx2341x_handler_ops cx18_cxhdl_ops;
diff --git a/drivers/media/pci/ivtv/ivtv-controls.c b/drivers/media/pci/ivtv/ivtv-controls.c
index 8a55ccb8f0c9..9666ca01549c 100644
--- a/drivers/media/pci/ivtv/ivtv-controls.c
+++ b/drivers/media/pci/ivtv/ivtv-controls.c
@@ -96,7 +96,7 @@ static int ivtv_s_audio_mode(struct cx2341x_handler *cxhdl, u32 val)
96 return 0; 96 return 0;
97} 97}
98 98
99struct cx2341x_handler_ops ivtv_cxhdl_ops = { 99const struct cx2341x_handler_ops ivtv_cxhdl_ops = {
100 .s_audio_mode = ivtv_s_audio_mode, 100 .s_audio_mode = ivtv_s_audio_mode,
101 .s_audio_sampling_freq = ivtv_s_audio_sampling_freq, 101 .s_audio_sampling_freq = ivtv_s_audio_sampling_freq,
102 .s_video_encoding = ivtv_s_video_encoding, 102 .s_video_encoding = ivtv_s_video_encoding,
diff --git a/drivers/media/pci/ivtv/ivtv-controls.h b/drivers/media/pci/ivtv/ivtv-controls.h
index 3999e6358312..ea397ba837e3 100644
--- a/drivers/media/pci/ivtv/ivtv-controls.h
+++ b/drivers/media/pci/ivtv/ivtv-controls.h
@@ -21,7 +21,7 @@
21#ifndef IVTV_CONTROLS_H 21#ifndef IVTV_CONTROLS_H
22#define IVTV_CONTROLS_H 22#define IVTV_CONTROLS_H
23 23
24extern struct cx2341x_handler_ops ivtv_cxhdl_ops; 24extern const struct cx2341x_handler_ops ivtv_cxhdl_ops;
25extern const struct v4l2_ctrl_ops ivtv_hdl_out_ops; 25extern const struct v4l2_ctrl_ops ivtv_hdl_out_ops;
26int ivtv_g_pts_frame(struct ivtv *itv, s64 *pts, s64 *frame); 26int ivtv_g_pts_frame(struct ivtv *itv, s64 *pts, s64 *frame);
27 27
diff --git a/drivers/media/usb/cx231xx/cx231xx-417.c b/drivers/media/usb/cx231xx/cx231xx-417.c
index f59a6f18f458..66b1b00b1b5b 100644
--- a/drivers/media/usb/cx231xx/cx231xx-417.c
+++ b/drivers/media/usb/cx231xx/cx231xx-417.c
@@ -1901,7 +1901,7 @@ static int cx231xx_s_audio_sampling_freq(struct cx2341x_handler *cxhdl, u32 idx)
1901 return 0; 1901 return 0;
1902} 1902}
1903 1903
1904static struct cx2341x_handler_ops cx231xx_ops = { 1904static const struct cx2341x_handler_ops cx231xx_ops = {
1905 /* needed for the video clock freq */ 1905 /* needed for the video clock freq */
1906 .s_audio_sampling_freq = cx231xx_s_audio_sampling_freq, 1906 .s_audio_sampling_freq = cx231xx_s_audio_sampling_freq,
1907 /* needed for setting up the video resolution */ 1907 /* needed for setting up the video resolution */