diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-12-29 12:25:52 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-30 05:02:14 -0500 |
commit | 513521eaee4375a1a0da0b73c7131a165a9fe4d9 (patch) | |
tree | 352f8d9053c1dd6d6866f13feed818bb24934f4a /include/media/v4l2-ctrls.h | |
parent | 6d6a48e51fd3bcb40c5b88d0f9690ba960eedfd2 (diff) |
[media] v4l2-ctrls: use const char * const * for the menu arrays
This prevents checkpatch warnings generated when defining
'static const char *foo[]' arrays. It makes sense to use
const char * const * anyway since the pointers in the array
are indeed const.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/v4l2-ctrls.h')
-rw-r--r-- | include/media/v4l2-ctrls.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h index 9b7bea928a88..d69ab4aae032 100644 --- a/include/media/v4l2-ctrls.h +++ b/include/media/v4l2-ctrls.h | |||
@@ -112,7 +112,7 @@ struct v4l2_ctrl { | |||
112 | u32 step; | 112 | u32 step; |
113 | u32 menu_skip_mask; | 113 | u32 menu_skip_mask; |
114 | }; | 114 | }; |
115 | const char **qmenu; | 115 | const char * const *qmenu; |
116 | unsigned long flags; | 116 | unsigned long flags; |
117 | union { | 117 | union { |
118 | s32 val; | 118 | s32 val; |
@@ -202,7 +202,7 @@ struct v4l2_ctrl_config { | |||
202 | s32 def; | 202 | s32 def; |
203 | u32 flags; | 203 | u32 flags; |
204 | u32 menu_skip_mask; | 204 | u32 menu_skip_mask; |
205 | const char **qmenu; | 205 | const char * const *qmenu; |
206 | unsigned int is_private:1; | 206 | unsigned int is_private:1; |
207 | unsigned int is_volatile:1; | 207 | unsigned int is_volatile:1; |
208 | }; | 208 | }; |