hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/i2c/ov9750.c
....@@ -623,9 +623,7 @@
623623 struct ov9750 *ov9750 = to_ov9750(sd);
624624 const struct ov9750_mode *mode = ov9750->cur_mode;
625625
626
- mutex_lock(&ov9750->mutex);
627626 fi->interval = mode->max_fps;
628
- mutex_unlock(&ov9750->mutex);
629627
630628 return 0;
631629 }
....@@ -927,9 +925,7 @@
927925 if (fie->index >= ARRAY_SIZE(supported_modes))
928926 return -EINVAL;
929927
930
- if (fie->code != MEDIA_BUS_FMT_SBGGR10_1X10)
931
- return -EINVAL;
932
-
928
+ fie->code = MEDIA_BUS_FMT_SBGGR10_1X10;
933929 fie->width = supported_modes[fie->index].width;
934930 fie->height = supported_modes[fie->index].height;
935931 fie->interval = supported_modes[fie->index].max_fps;