| .. | .. |
|---|
| 1399 | 1399 | { |
|---|
| 1400 | 1400 | struct gc2155 *gc2155 = to_gc2155(sd); |
|---|
| 1401 | 1401 | |
|---|
| 1402 | | - mutex_lock(&gc2155->mutex); |
|---|
| 1403 | 1402 | fi->interval = gc2155->cur_mode->max_fps; |
|---|
| 1404 | | - mutex_unlock(&gc2155->mutex); |
|---|
| 1405 | 1403 | |
|---|
| 1406 | 1404 | return 0; |
|---|
| 1407 | 1405 | } |
|---|
| .. | .. |
|---|
| 1487 | 1485 | if (fie->index >= ARRAY_SIZE(supported_modes)) |
|---|
| 1488 | 1486 | return -EINVAL; |
|---|
| 1489 | 1487 | |
|---|
| 1490 | | - if (fie->code != MEDIA_BUS_FMT_UYVY8_2X8) |
|---|
| 1491 | | - return -EINVAL; |
|---|
| 1492 | | - |
|---|
| 1488 | + fie->code = MEDIA_BUS_FMT_UYVY8_2X8; |
|---|
| 1493 | 1489 | fie->width = supported_modes[fie->index].width; |
|---|
| 1494 | 1490 | fie->height = supported_modes[fie->index].height; |
|---|
| 1495 | 1491 | fie->interval = supported_modes[fie->index].max_fps; |
|---|