kernel/drivers/media/i2c/ov2735.c
.. .. @@ -836,9 +836,7 @@ 836 836 if (fie->index >= ARRAY_SIZE(supported_modes)) 837 837 return -EINVAL; 838 838 839 - if (fie->code != MEDIA_BUS_FMT_SBGGR10_1X10)840 - return -EINVAL;841 -839 + fie->code = MEDIA_BUS_FMT_SBGGR10_1X10;842 840 fie->width = supported_modes[fie->index].width; 843 841 fie->height = supported_modes[fie->index].height; 844 842 fie->interval = supported_modes[fie->index].max_fps;