diff options
author | Tejas Vipin <[email protected]> | 2024-06-12 19:05:43 +0530 |
---|---|---|
committer | Neil Armstrong <[email protected]> | 2024-06-12 16:33:30 +0200 |
commit | 66055636a146c435cd226fb5a334176304652f3c (patch) | |
tree | 765282e89b37d4fb450a94712726cf8f70d04ae5 | |
parent | 6b4468b0c6ba37a16795da567b58dc80bc7fb439 (diff) |
drm/mipi-dsi: fix handling of ctx in mipi_dsi_msleep
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 <[email protected]>
Suggested-by: Douglas Anderson <[email protected]>
Reviewed-by: Douglas Anderson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[narmstrong: fixed fixes tag]
Signed-off-by: Neil Armstrong <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r-- | include/drm/drm_mipi_dsi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index bd5a0b6d0711..71d121aeef24 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -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) |