mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[VIDEO] ffb: The pseudo_palette is only 16 elements long
The pseudo_palette is only 16 elements long. Signed-off-by: Antonino Daplas <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
353076fee8
commit
d2fa9e05e3
1 changed files with 2 additions and 2 deletions
|
|
@ -656,7 +656,7 @@ static int ffb_setcolreg(unsigned regno,
|
|||
{
|
||||
u32 value;
|
||||
|
||||
if (regno >= 256)
|
||||
if (regno >= 16)
|
||||
return 1;
|
||||
|
||||
red >>= 8;
|
||||
|
|
@ -903,7 +903,7 @@ ffb_init_fix(struct fb_info *info)
|
|||
struct all_info {
|
||||
struct fb_info info;
|
||||
struct ffb_par par;
|
||||
u32 pseudo_palette[256];
|
||||
u32 pseudo_palette[16];
|
||||
};
|
||||
|
||||
static int ffb_init_one(struct of_device *op)
|
||||
|
|
|
|||
Loading…
Reference in a new issue