Skip to content

Commit 916f65a

Browse files
committed
drivers/video/fbdev/starfive/starfive_mipi_tx: correct va_start
The second parameter of va_start() must be the last function parameter and not a local variable. Fixes: 81ed1fe ("drivers/video/fbdev and drivers/media/platform") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
1 parent fc3f9b5 commit 916f65a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/fbdev/starfive/starfive_mipi_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ int dsitx_dcs_write(struct sf_fb_data *sf_dev, int n, ...)
561561

562562
wbuf.len = 0;
563563
wbuf.val32 = 0;
564-
va_start(ap, cmd_size);
564+
va_start(ap, n);
565565
for (i = 0; i < cmd_size; i++) {
566566
wbuf.val8[wbuf.len++] = (char)va_arg(ap, int);
567567
if (((i + 1) & 0x3) == 0) {

0 commit comments

Comments
 (0)