forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/media/i2c/jx_h65.c
....@@ -895,8 +895,7 @@
895895 if (fie->index >= ARRAY_SIZE(supported_modes))
896896 return -EINVAL;
897897
898
- if (fie->code != MEDIA_BUS_FMT_SBGGR10_1X10)
899
- return -EINVAL;
898
+ fie->code = MEDIA_BUS_FMT_SBGGR10_1X10;
900899
901900 fie->width = supported_modes[fie->index].width;
902901 fie->height = supported_modes[fie->index].height;