.. | .. |
---|
736 | 736 | struct ov5648 *ov5648 = to_ov5648(sd); |
---|
737 | 737 | const struct ov5648_mode *mode = ov5648->cur_mode; |
---|
738 | 738 | |
---|
739 | | - mutex_lock(&ov5648->mutex); |
---|
740 | 739 | fi->interval = mode->max_fps; |
---|
741 | | - mutex_unlock(&ov5648->mutex); |
---|
742 | 740 | |
---|
743 | 741 | return 0; |
---|
744 | 742 | } |
---|
.. | .. |
---|
1082 | 1080 | if (fie->index >= ov5648->cfg_num) |
---|
1083 | 1081 | return -EINVAL; |
---|
1084 | 1082 | |
---|
1085 | | - if (fie->code != MEDIA_BUS_FMT_SBGGR10_1X10) |
---|
1086 | | - return -EINVAL; |
---|
1087 | | - |
---|
| 1083 | + fie->code = MEDIA_BUS_FMT_SBGGR10_1X10; |
---|
1088 | 1084 | fie->width = supported_modes[fie->index].width; |
---|
1089 | 1085 | fie->height = supported_modes[fie->index].height; |
---|
1090 | 1086 | fie->interval = supported_modes[fie->index].max_fps; |
---|