| .. | .. |
|---|
| 623 | 623 | struct ov9750 *ov9750 = to_ov9750(sd); |
|---|
| 624 | 624 | const struct ov9750_mode *mode = ov9750->cur_mode; |
|---|
| 625 | 625 | |
|---|
| 626 | | - mutex_lock(&ov9750->mutex); |
|---|
| 627 | 626 | fi->interval = mode->max_fps; |
|---|
| 628 | | - mutex_unlock(&ov9750->mutex); |
|---|
| 629 | 627 | |
|---|
| 630 | 628 | return 0; |
|---|
| 631 | 629 | } |
|---|
| .. | .. |
|---|
| 927 | 925 | if (fie->index >= ARRAY_SIZE(supported_modes)) |
|---|
| 928 | 926 | return -EINVAL; |
|---|
| 929 | 927 | |
|---|
| 930 | | - if (fie->code != MEDIA_BUS_FMT_SBGGR10_1X10) |
|---|
| 931 | | - return -EINVAL; |
|---|
| 932 | | - |
|---|
| 928 | + fie->code = MEDIA_BUS_FMT_SBGGR10_1X10; |
|---|
| 933 | 929 | fie->width = supported_modes[fie->index].width; |
|---|
| 934 | 930 | fie->height = supported_modes[fie->index].height; |
|---|
| 935 | 931 | fie->interval = supported_modes[fie->index].max_fps; |
|---|