summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Bobrowicz <sam@elite-embedded.com>2024-11-22 11:28:01 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2024-12-19 14:50:17 +0300
commit001d3753538d26ddcbef011f5643cfff58a7f672 (patch)
tree21097485bdc25d843eeeb04b5dd9d62c575ec741
parentfb2bd86270cd0ad004f4c614ba4f8c63a5720e25 (diff)
downloadlinux-001d3753538d26ddcbef011f5643cfff58a7f672.tar.xz
media: ov5640: fix get_light_freq on auto
Light frequency was not properly returned when in auto mode and the detected frequency was 60Hz. Fixes: 19a81c1426c1 ("[media] add Omnivision OV5640 sensor driver") Cc: stable@vger.kernel.org Signed-off-by: Sam Bobrowicz <sam@elite-embedded.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r--drivers/media/i2c/ov5640.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c
index da5cb5f45a4f..0dae0438aa80 100644
--- a/drivers/media/i2c/ov5640.c
+++ b/drivers/media/i2c/ov5640.c
@@ -1982,6 +1982,7 @@ static int ov5640_get_light_freq(struct ov5640_dev *sensor)
light_freq = 50;
} else {
/* 60Hz */
+ light_freq = 60;
}
}