media: ov5640: fix wrong binning value in exposure calculation
authorHugues Fruchet <hugues.fruchet@st.com>
Tue, 11 Sep 2018 13:48:19 +0000 (09:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:42:27 +0000 (19:42 +0200)
commit415ad2622e9864fb2494388e9db835de822b4419
tree6ebe2d25519dbf515470b19eaac7018ef899c37c
parentdc076d9cdec6cb9ac54c247e91969c8c5e6f095a
media: ov5640: fix wrong binning value in exposure calculation

[ Upstream commit c2c3f42df4dd9bb231d756bacb0c897f662c6d3c ]

ov5640_set_mode_exposure_calc() is checking binning value but
binning value read is buggy, fix this.
Rename ov5640_binning_on() to ov5640_get_binning() as per other
similar functions.

Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/media/i2c/ov5640.c