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

staging: sm7xxfb: cleanup on smtc_alloc_fb_info

This patch improves code legibility after last changes.
Signed-off-by: default avatarJavier M. Mellid <jmunhoz@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9f6fe043
......@@ -679,7 +679,7 @@ static struct fb_ops smtcfb_ops = {
};
/*
* alloc struct smtcfb_info and assign the default value
* alloc struct smtcfb_info and assign default values
*/
static struct smtcfb_info *smtc_alloc_fb_info(struct pci_dev *pdev)
{
......@@ -692,17 +692,11 @@ static struct smtcfb_info *smtc_alloc_fb_info(struct pci_dev *pdev)
sfb->pdev = pdev;
/* init sfb->fb with default value */
sfb->fb.flags = FBINFO_FLAG_DEFAULT;
sfb->fb.fbops = &smtcfb_ops;
sfb->fb.fix = smtcfb_fix;
sfb->fb.var = smtcfb_var;
sfb->fb.pseudo_palette = sfb->colreg;
sfb->fb.par = 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