Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/ssd130x: fix ssd132x_clear_screen() columns

The number of columns relates to the width, not the height. Use the
correct variable.

Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Fixes: fdd591e00a9c ("drm/ssd130x: Add support for the SSD132x OLED controller family")
Link: https://lore.kernel.org/r/20250611111307.1814876-1-jkeeping@inmusicbrands.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>

authored by

John Keeping and committed by
Javier Martinez Canillas
e479da40 afe38284

+1 -1
+1 -1
drivers/gpu/drm/solomon/ssd130x.c
··· 974 974 975 975 static void ssd132x_clear_screen(struct ssd130x_device *ssd130x, u8 *data_array) 976 976 { 977 - unsigned int columns = DIV_ROUND_UP(ssd130x->height, SSD132X_SEGMENT_WIDTH); 977 + unsigned int columns = DIV_ROUND_UP(ssd130x->width, SSD132X_SEGMENT_WIDTH); 978 978 unsigned int height = ssd130x->height; 979 979 980 980 memset(data_array, 0, columns * height);