From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Thu, 04 Jan 2024 10:08:02 +0000 Subject: [PATCH] disable FB --- kernel/drivers/media/i2c/gc2355.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/kernel/drivers/media/i2c/gc2355.c b/kernel/drivers/media/i2c/gc2355.c index 3715a39..1fca9ff 100644 --- a/kernel/drivers/media/i2c/gc2355.c +++ b/kernel/drivers/media/i2c/gc2355.c @@ -519,9 +519,7 @@ struct gc2355 *gc2355 = to_gc2355(sd); const struct gc2355_mode *mode = gc2355->cur_mode; - mutex_lock(&gc2355->mutex); fi->interval = mode->max_fps; - mutex_unlock(&gc2355->mutex); return 0; } @@ -817,9 +815,7 @@ if (fie->index >= ARRAY_SIZE(supported_modes)) return -EINVAL; - if (fie->code != MEDIA_BUS_FMT_SRGGB10_1X10) - return -EINVAL; - + fie->code = MEDIA_BUS_FMT_SRGGB10_1X10; fie->width = supported_modes[fie->index].width; fie->height = supported_modes[fie->index].height; fie->interval = supported_modes[fie->index].max_fps; -- Gitblit v1.6.2