forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
....@@ -629,7 +629,7 @@
629629
630630 dsi->format = format;
631631 bpp = mipi_dsi_pixel_format_to_bpp(dsi->format);
632
- if (bpp < 0) {
632
+ if (bpp <= 0) {
633633 DRM_DEV_ERROR(dsi->dev,
634634 "failed to get bpp for pixel format %d\n",
635635 dsi->format);