media: ov5640: fix virtual_channel parameter permissions
authorHugues Fruchet <hugues.fruchet@st.com>
Tue, 6 Feb 2018 13:24:09 +0000 (08:24 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Feb 2018 08:12:19 +0000 (03:12 -0500)
commit8670d70a4286fc9be47f4c9654e071bce97111f2
treebc3b27dd76dd567eb0d11380f0e06d7ad7c5b9fc
parent41d8d7f517126fa104a67c2b0cc23cf5c12fadc4
media: ov5640: fix virtual_channel parameter permissions

Fix module_param(virtual_channel) permissions.
This problem was detected by checkpatch:
$ scripts/checkpatch.pl -f drivers/media/i2c/ov5640.c
ERROR: Use 4 digit octal (0777) not decimal permissions
+module_param(virtual_channel, int, 0);

Also add an error trace in case of virtual_channel not in
the valid range of values.

Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov5640.c