summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2018-02-20 23:51:31 +0000
committerBryan O'Donoghue <bryan.odonoghue@linaro.org>2019-02-23 16:28:11 +0000
commit6028538d7b8f20f5e4ef6b424e8fef0530226c9c (patch)
treeed23ca65833b8ef6913baaa4c74325f75f23ceba
parentd0b5b09b61431abf6b3f9c6346e1902a6c7df637 (diff)
media: ov2680: clean pending status at mode set
Make sure we clean the pending changes status flag after applying the latest mode request. This will avoid setting more than once the same mode. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
-rw-r--r--drivers/media/i2c/ov2680.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov2680.c b/drivers/media/i2c/ov2680.c
index 8e9d75972dae..b7ae5cd1930a 100644
--- a/drivers/media/i2c/ov2680.c
+++ b/drivers/media/i2c/ov2680.c
@@ -18,7 +18,6 @@
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/of_gpio.h>
-#include <linux/of_graph.h>
#include <media/v4l2-common.h>
#include <media/v4l2-ctrls.h>
@@ -546,6 +545,7 @@ static int ov2680_mode_set(struct ov2680_dev *sensor)
if (ret < 0)
return ret;
+ sensor->mode_pending_changes = false;
return 0;
}