media: ov5640: fix framerate update
authorHugues Fruchet <hugues.fruchet@st.com>
Thu, 8 Feb 2018 12:22:14 +0000 (07:22 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Feb 2018 08:14:12 +0000 (03:14 -0500)
commit3b498424002755b06a86d56acf9e4c8e5e5085ff
treed15f7dfa67057ce5d8a90242ce60cc3fa3e12600
parent8670d70a4286fc9be47f4c9654e071bce97111f2
media: ov5640: fix framerate update

After a framerate update through s_frame_interval(), the new
framerate was not taken into account when streaming,
but was taken into account on next session.
This was due to sensor->current_mode not updated accordingly to new
framerate setting in ov5640_s_frame_interval().

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@s-opensource.com>
drivers/media/i2c/ov5640.c