Commit e590c2b0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Maxime Ripard

drm/vc4: fix argument ordering in vc4_crtc_get_margins()

Cppcheck complains that the declaration doesn't match the function
definition.  Obviously "left" should come before "right".  The caller
and the function implementation are done this way, it's just the
declaration which is wrong so this doesn't affect runtime.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/YH/720FD978TPhHp@mwanda
parent 1fcf24fb
...@@ -825,7 +825,7 @@ void vc4_crtc_destroy_state(struct drm_crtc *crtc, ...@@ -825,7 +825,7 @@ void vc4_crtc_destroy_state(struct drm_crtc *crtc,
void vc4_crtc_reset(struct drm_crtc *crtc); void vc4_crtc_reset(struct drm_crtc *crtc);
void vc4_crtc_handle_vblank(struct vc4_crtc *crtc); void vc4_crtc_handle_vblank(struct vc4_crtc *crtc);
void vc4_crtc_get_margins(struct drm_crtc_state *state, void vc4_crtc_get_margins(struct drm_crtc_state *state,
unsigned int *right, unsigned int *left, unsigned int *left, unsigned int *right,
unsigned int *top, unsigned int *bottom); unsigned int *top, unsigned int *bottom);
/* vc4_debugfs.c */ /* vc4_debugfs.c */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment