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.

video: da8xx-fb: Fix casting of info->pseudo_palette

The casting to (u16 *) on info->pseudo_palette is wrong and causes the
display to show a blue (garbage) vertical line on every other pixel column

Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Jon Ringle and committed by
Tomi Valkeinen
8d018647 c9eaa447

+1 -9
+1 -9
drivers/video/da8xx-fb.c
··· 663 663 (green << info->var.green.offset) | 664 664 (blue << info->var.blue.offset); 665 665 666 - switch (info->var.bits_per_pixel) { 667 - case 16: 668 - ((u16 *) (info->pseudo_palette))[regno] = v; 669 - break; 670 - case 24: 671 - case 32: 672 - ((u32 *) (info->pseudo_palette))[regno] = v; 673 - break; 674 - } 666 + ((u32 *) (info->pseudo_palette))[regno] = v; 675 667 if (palette[0] != 0x4000) { 676 668 update_hw = 1; 677 669 palette[0] = 0x4000;