OSDN Git Service

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)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 17 Sep 2018 19:31:55 +0000 (15:31 -0400)
commitc2c3f42df4dd9bb231d756bacb0c897f662c6d3c
treef08b13972f2e4ee43a2f26415503329c13e8a2b7
parent3cca8ef5f774cbd61c8db05d9aa401de9bb59c66
media: ov5640: fix wrong binning value in exposure calculation

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>
drivers/media/i2c/ov5640.c