aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/v4l2-common.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-12-29 12:25:52 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-30 05:02:14 -0500
commit513521eaee4375a1a0da0b73c7131a165a9fe4d9 (patch)
tree352f8d9053c1dd6d6866f13feed818bb24934f4a /drivers/media/video/v4l2-common.c
parent6d6a48e51fd3bcb40c5b88d0f9690ba960eedfd2 (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 'drivers/media/video/v4l2-common.c')
-rw-r--r--drivers/media/video/v4l2-common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/v4l2-common.c b/drivers/media/video/v4l2-common.c
index b5eb1f3950b..3f0871b550a 100644
--- a/drivers/media/video/v4l2-common.c
+++ b/drivers/media/video/v4l2-common.c
@@ -150,7 +150,7 @@ EXPORT_SYMBOL(v4l2_prio_check);
150 struct v4l2_queryctrl and the available menu items. Note that 150 struct v4l2_queryctrl and the available menu items. Note that
151 menu_items may be NULL, in that case it is ignored. */ 151 menu_items may be NULL, in that case it is ignored. */
152int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl, 152int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl,
153 const char **menu_items) 153 const char * const *menu_items)
154{ 154{
155 if (qctrl->flags & V4L2_CTRL_FLAG_DISABLED) 155 if (qctrl->flags & V4L2_CTRL_FLAG_DISABLED)
156 return -EINVAL; 156 return -EINVAL;
@@ -199,7 +199,7 @@ EXPORT_SYMBOL(v4l2_ctrl_query_fill);
199 If menu_items is NULL, then the menu items are retrieved using 199 If menu_items is NULL, then the menu items are retrieved using
200 v4l2_ctrl_get_menu. */ 200 v4l2_ctrl_get_menu. */
201int v4l2_ctrl_query_menu(struct v4l2_querymenu *qmenu, struct v4l2_queryctrl *qctrl, 201int v4l2_ctrl_query_menu(struct v4l2_querymenu *qmenu, struct v4l2_queryctrl *qctrl,
202 const char **menu_items) 202 const char * const *menu_items)
203{ 203{
204 int i; 204 int i;
205 205
@@ -222,7 +222,7 @@ EXPORT_SYMBOL(v4l2_ctrl_query_menu);
222 Use this if there are 'holes' in the list of valid menu items. */ 222 Use this if there are 'holes' in the list of valid menu items. */
223int v4l2_ctrl_query_menu_valid_items(struct v4l2_querymenu *qmenu, const u32 *ids) 223int v4l2_ctrl_query_menu_valid_items(struct v4l2_querymenu *qmenu, const u32 *ids)
224{ 224{
225 const char **menu_items = v4l2_ctrl_get_menu(qmenu->id); 225 const char * const *menu_items = v4l2_ctrl_get_menu(qmenu->id);
226 226
227 qmenu->reserved = 0; 227 qmenu->reserved = 0;
228 if (menu_items == NULL || ids == NULL) 228 if (menu_items == NULL || ids == NULL)