]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/mipi-dsi: fix handling of ctx in mipi_dsi_msleep
authorTejas Vipin <tejasvipin76@gmail.com>
Wed, 12 Jun 2024 13:35:43 +0000 (19:05 +0530)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 12 Jun 2024 14:33:30 +0000 (16:33 +0200)
ctx would be better off treated as a pointer to account for most of its
usage so far, and brackets should be added to account for operator
precedence for correct evaluation.

Fixes: f79d6d28d8fe ("drm/mipi-dsi: wrap more functions for streamline handling")
Signed-off-by: Tejas Vipin <tejasvipin76@gmail.com>
Suggested-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20240612133550.473279-3-tejasvipin76@gmail.com
[narmstrong: fixed fixes tag]
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240612133550.473279-3-tejasvipin76@gmail.com
include/drm/drm_mipi_dsi.h

index bd5a0b6d07116bd605f9121f85319ea4222bea45..71d121aeef2465c10144a1a58b5e9e76737b3689 100644 (file)
@@ -293,7 +293,7 @@ ssize_t mipi_dsi_generic_read(struct mipi_dsi_device *dsi, const void *params,
 
 #define mipi_dsi_msleep(ctx, delay)    \
        do {                            \
-               if (!ctx.accum_err)     \
+               if (!(ctx)->accum_err)  \
                        msleep(delay);  \
        } while (0)