diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-02-13 08:57:48 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:46 -0400 |
commit | 2ba588942c45a03a29a7a097e62bf0beceddb0e8 (patch) | |
tree | 8bb6dbc96fcf2f6b68cd933626b9d7b60fe318f0 /drivers/media/video/cx18/cx18-controls.c | |
parent | 1b6f1d9603a46a73ceed8daf7a3285559727fec3 (diff) |
V4L/DVB (10544): v4l2-common: add comments warning that about the sort order
Control arrays as are used with v4l2_ctrl_next must be sorted from
low to high. Add a comment at the top of all such arrays to warn
about this.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-controls.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-controls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/cx18/cx18-controls.c b/drivers/media/video/cx18/cx18-controls.c index 6af4d5c190e1..10a4e07b7aca 100644 --- a/drivers/media/video/cx18/cx18-controls.c +++ b/drivers/media/video/cx18/cx18-controls.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include "cx18-mailbox.h" | 30 | #include "cx18-mailbox.h" |
31 | #include "cx18-controls.h" | 31 | #include "cx18-controls.h" |
32 | 32 | ||
33 | /* Must be sorted from low to high control ID! */ | ||
33 | static const u32 user_ctrls[] = { | 34 | static const u32 user_ctrls[] = { |
34 | V4L2_CID_USER_CLASS, | 35 | V4L2_CID_USER_CLASS, |
35 | V4L2_CID_BRIGHTNESS, | 36 | V4L2_CID_BRIGHTNESS, |