]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00289436 - [V4L2 Capture] Build warning on mxc_v4l2_capture.c
authorOliver Brown <oliver.brown@freescale.com>
Fri, 22 Nov 2013 16:30:15 +0000 (10:30 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:45 +0000 (10:06 +0200)
commita9f79f1534c42a0d06f223d56dd9377c4975b044
tree2f69822bf44fed4a800b71da933aa0744f8bbdfa
parentac8a228df79e695a57e59195a47d9ce00fd9d491
ENGR00289436 - [V4L2 Capture] Build warning on mxc_v4l2_capture.c

Need to remove the following warning:

warning: array subscript is above array bounds

Summary of changes:
Moved MXC_SENSOR_NUM definition to mxc_v4l2_capture.h.
all_sensors[] now uses MXC_SENSOR_NUM in definition.
MXC_SENSOR_NUM is now used for bounds checking the array.

Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
drivers/media/platform/mxc/capture/mxc_v4l2_capture.c
drivers/media/platform/mxc/capture/mxc_v4l2_capture.h