hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/i2c/ov5648.c
....@@ -736,9 +736,7 @@
736736 struct ov5648 *ov5648 = to_ov5648(sd);
737737 const struct ov5648_mode *mode = ov5648->cur_mode;
738738
739
- mutex_lock(&ov5648->mutex);
740739 fi->interval = mode->max_fps;
741
- mutex_unlock(&ov5648->mutex);
742740
743741 return 0;
744742 }
....@@ -1082,9 +1080,7 @@
10821080 if (fie->index >= ov5648->cfg_num)
10831081 return -EINVAL;
10841082
1085
- if (fie->code != MEDIA_BUS_FMT_SBGGR10_1X10)
1086
- return -EINVAL;
1087
-
1083
+ fie->code = MEDIA_BUS_FMT_SBGGR10_1X10;
10881084 fie->width = supported_modes[fie->index].width;
10891085 fie->height = supported_modes[fie->index].height;
10901086 fie->interval = supported_modes[fie->index].max_fps;