drm/mcde: Fix compile problems
authorSam Ravnborg <sam@ravnborg.org>
Sun, 26 May 2019 11:36:24 +0000 (13:36 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 26 May 2019 11:42:23 +0000 (13:42 +0200)
Some further compile problems appeared while merging the
patch, fix them up.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190526113624.6702-1-linus.walleij@linaro.org
drivers/gpu/drm/mcde/mcde_display.c
drivers/gpu/drm/mcde/mcde_dsi.c

index 17dc46d554b007d6d457e091f9ae6d79d54be2c7..f3ef108a41d9490bec0ad524d2aa53d8c1979d4a 100644 (file)
@@ -823,7 +823,7 @@ static void mcde_display_enable(struct drm_simple_display_pipe *pipe,
        u32 formatter_ppl = mode->hdisplay; /* pixels per line */
        u32 formatter_lpf = mode->vdisplay; /* lines per frame */
        int pkt_size, fifo_wtrmrk;
-       int cpp = drm_format_plane_cpp(format, 0);
+       int cpp = fb->format->cpp[0];
        int formatter_cpp;
        struct drm_format_name_buf tmp;
        u32 formatter_frame;
index 456b43482448f04298ebaa99b33aac0d2eef24db..07f7090d08b37f4b32101b5fe61917a45b24486d 100644 (file)
@@ -191,7 +191,7 @@ static ssize_t mcde_dsi_host_transfer(struct mipi_dsi_host *host,
        }
 
        dev_dbg(d->dev,
-               "message to channel %d, %u bytes",
+               "message to channel %d, %zd bytes",
                msg->channel,
                txlen);