Skip to content

Commit c0e7894

Browse files
authored
Merge pull request #6 from xypron/dsitx_dcs_write
drivers/video/fbdev/starfive/starfive_mipi_tx: correct va_start
2 parents 5d7c6da + 916f65a commit c0e7894

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)