summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2018-02-20 23:51:31 +0000
committerRui Miguel Silva <rui.silva@linaro.org>2018-08-12 16:49:37 +0100
commitd8e4233c0bc19aa245f23304adfbcc2883d8cb82 (patch)
treeeb5e7053fc4fb85a339c45af45879c735773939e
parenta72f7ab201e468c31e72a7f5c690c5a9c0f0dab3 (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;
}