| .. | .. |
|---|
| 614 | 614 | struct gc0403 *gc0403 = to_gc0403(sd); |
|---|
| 615 | 615 | const struct gc0403_mode *mode = gc0403->cur_mode; |
|---|
| 616 | 616 | |
|---|
| 617 | | - mutex_lock(&gc0403->mutex); |
|---|
| 618 | 617 | fi->interval = mode->max_fps; |
|---|
| 619 | | - mutex_unlock(&gc0403->mutex); |
|---|
| 620 | 618 | |
|---|
| 621 | 619 | return 0; |
|---|
| 622 | 620 | } |
|---|
| .. | .. |
|---|
| 908 | 906 | if (fie->index >= ARRAY_SIZE(supported_modes)) |
|---|
| 909 | 907 | return -EINVAL; |
|---|
| 910 | 908 | |
|---|
| 911 | | - if (fie->code != MEDIA_BUS_FMT_SRGGB10_1X10) |
|---|
| 912 | | - return -EINVAL; |
|---|
| 913 | | - |
|---|
| 909 | + fie->code = MEDIA_BUS_FMT_SRGGB10_1X10; |
|---|
| 914 | 910 | fie->width = supported_modes[fie->index].width; |
|---|
| 915 | 911 | fie->height = supported_modes[fie->index].height; |
|---|
| 916 | 912 | fie->interval = supported_modes[fie->index].max_fps; |
|---|