[media] V4L: Add helper function for standard integer menu controls
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Sun, 6 May 2012 18:30:44 +0000 (15:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 May 2012 17:03:21 +0000 (14:03 -0300)
commit515f32879a05bdb69f9b3f86f53db4c04b95e845
tree9a090c658d1dc1c96286cb9359cbfd13b42f5db3
parent6491d1adfbf0e2ffbdfcda8cef60edc01b6700b3
[media] V4L: Add helper function for standard integer menu controls

This patch adds v4l2_ctrl_new_int_menu() helper function which can be used
in drivers for creating standard integer menu control with driver-specific
menu item list. It is similar to v4l2_ctrl_new_std_menu(), except it doesn't
have a mask parameter and an additional qmenu parameter allows passing
an array of signed 64-bit integers as the menu item list.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Tested-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Documentation/video4linux/v4l2-controls.txt
drivers/media/video/v4l2-ctrls.c
include/media/v4l2-ctrls.h