Commit cd4653ae authored by Javier M. Mellid's avatar Javier M. Mellid Committed by Greg Kroah-Hartman

staging: sm7xxfb: move pseudo palette into smtcfb_info

This patch moves pseudo palette into smtcfb_info struct.

Tested with SM712.
Signed-off-by: default avatarJavier M. Mellid <jmunhoz@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4a7c2e0d
...@@ -52,13 +52,13 @@ struct smtcfb_info { ...@@ -52,13 +52,13 @@ struct smtcfb_info {
u_int width; u_int width;
u_int height; u_int height;
u_int hz; u_int hz;
u32 colreg[17];
}; };
char __iomem *smtc_RegBaseAddress; /* Memory Map IO starting address */ char __iomem *smtc_RegBaseAddress; /* Memory Map IO starting address */
char __iomem *smtc_VRAMBaseAddress; /* video memory starting address */ char __iomem *smtc_VRAMBaseAddress; /* video memory starting address */
static u32 colreg[17];
static struct fb_var_screeninfo smtcfb_var = { static struct fb_var_screeninfo smtcfb_var = {
.xres = 1024, .xres = 1024,
.yres = 600, .yres = 600,
...@@ -709,9 +709,9 @@ static struct smtcfb_info *smtc_alloc_fb_info(struct pci_dev *pdev, char *name) ...@@ -709,9 +709,9 @@ static struct smtcfb_info *smtc_alloc_fb_info(struct pci_dev *pdev, char *name)
sfb->fb.var.accel_flags = FB_ACCELF_TEXT; sfb->fb.var.accel_flags = FB_ACCELF_TEXT;
sfb->fb.var.vmode = FB_VMODE_NONINTERLACED; sfb->fb.var.vmode = FB_VMODE_NONINTERLACED;
sfb->fb.par = sfb; sfb->fb.pseudo_palette = sfb->colreg;
sfb->fb.pseudo_palette = colreg; sfb->fb.par = sfb;
return sfb; return sfb;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment