diff options
author | Rui Miguel Silva <rui.silva@linaro.org> | 2018-02-20 23:51:31 +0000 |
---|---|---|
committer | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2019-05-01 11:51:29 +0100 |
commit | 455bfec2f7402286cb5528526f4580ff20865f4a (patch) | |
tree | 54ca571ab0ca292e1be2441bfd0a8c0c7bdf1b86 | |
parent | c7f0f3c6cb4140e0a0bbe4b0f7682f6aeec0ad4f (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.c | 2 |
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; } |