media: ov5640: fix frame interval enumeration
authorHugues Fruchet <hugues.fruchet@st.com>
Wed, 20 Jun 2018 08:40:57 +0000 (04:40 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 28 Jun 2018 13:24:38 +0000 (09:24 -0400)
commit3c4a737267e89aafa6308c6c456d2ebea3fcd085
treecb9be2efc6578c08c457626eb235f57f15925ac7
parent2bbc46e811f0d40ed92ff9c104fce6618049f726
media: ov5640: fix frame interval enumeration

Driver must reject frame interval enumeration of unsupported resolution.
This was detected by v4l2-compliance format ioctl test:
v4l2-compliance Format ioctls:
    info: found 2 frameintervals for pixel format 4745504a and size 176x144
  fail: v4l2-test-formats.cpp(123):
                           found frame intervals for invalid size 177x144
    test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: FAIL

Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov5640.c