Skip to content

Commit 93541e2

Browse files
Casaleskartben
authored andcommitted
drivers: display: gc9x01x: fix correct mipi buffer size
mipi api allows only buffers where pitch is equal to width. buffers with smaller width get split into multiple transmissions but mipi buffer size was set incorrectly. Signed-off-by: Manuel Martin <[email protected]>
1 parent 72d3449 commit 93541e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/display/display_gc9x01x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ static int gc9x01x_write(const struct device *dev, const uint16_t x, const uint1
530530
write_h = 1U;
531531
nbr_of_writes = desc->height;
532532
mipi_desc.height = 1;
533-
mipi_desc.buf_size = desc->pitch * data->bytes_per_pixel;
533+
mipi_desc.buf_size = desc->width * data->bytes_per_pixel;
534534
} else {
535535
write_h = desc->height;
536536
mipi_desc.height = desc->height;

0 commit comments

Comments
 (0)