| .. | .. |
|---|
| 519 | 519 | struct gc2355 *gc2355 = to_gc2355(sd); |
|---|
| 520 | 520 | const struct gc2355_mode *mode = gc2355->cur_mode; |
|---|
| 521 | 521 | |
|---|
| 522 | | - mutex_lock(&gc2355->mutex); |
|---|
| 523 | 522 | fi->interval = mode->max_fps; |
|---|
| 524 | | - mutex_unlock(&gc2355->mutex); |
|---|
| 525 | 523 | |
|---|
| 526 | 524 | return 0; |
|---|
| 527 | 525 | } |
|---|
| .. | .. |
|---|
| 817 | 815 | if (fie->index >= ARRAY_SIZE(supported_modes)) |
|---|
| 818 | 816 | return -EINVAL; |
|---|
| 819 | 817 | |
|---|
| 820 | | - if (fie->code != MEDIA_BUS_FMT_SRGGB10_1X10) |
|---|
| 821 | | - return -EINVAL; |
|---|
| 822 | | - |
|---|
| 818 | + fie->code = MEDIA_BUS_FMT_SRGGB10_1X10; |
|---|
| 823 | 819 | fie->width = supported_modes[fie->index].width; |
|---|
| 824 | 820 | fie->height = supported_modes[fie->index].height; |
|---|
| 825 | 821 | fie->interval = supported_modes[fie->index].max_fps; |
|---|