kernel/drivers/media/i2c/ov7750.c
.. .. @@ -941,9 +941,7 @@ 941 941 if (fie->index >= ARRAY_SIZE(supported_modes)) 942 942 return -EINVAL; 943 943 944 - if (fie->code != MEDIA_BUS_FMT_SBGGR10_1X10)945 - return -EINVAL;946 -944 + fie->code = MEDIA_BUS_FMT_SBGGR10_1X10;947 945 fie->width = supported_modes[fie->index].width; 948 946 fie->height = supported_modes[fie->index].height; 949 947 fie->interval = supported_modes[fie->index].max_fps;