提交 20d471c4 编写于 作者: J Javier M. Mellid 提交者: Greg Kroah-Hartman

staging: sm7xxfb: cleanup on smtc_alloc_fb_info

This patch improves code legibility after last changes.
Signed-off-by: NJavier M. Mellid <jmunhoz@igalia.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 9f6fe043
...@@ -679,7 +679,7 @@ static struct fb_ops smtcfb_ops = { ...@@ -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) static struct smtcfb_info *smtc_alloc_fb_info(struct pci_dev *pdev)
{ {
...@@ -692,18 +692,12 @@ static struct smtcfb_info *smtc_alloc_fb_info(struct pci_dev *pdev) ...@@ -692,18 +692,12 @@ static struct smtcfb_info *smtc_alloc_fb_info(struct pci_dev *pdev)
sfb->pdev = pdev; sfb->pdev = pdev;
/* init sfb->fb with default value */ sfb->fb.flags = FBINFO_FLAG_DEFAULT;
sfb->fb.fbops = &smtcfb_ops;
sfb->fb.flags = FBINFO_FLAG_DEFAULT; sfb->fb.fix = smtcfb_fix;
sfb->fb.fbops = &smtcfb_ops; sfb->fb.var = smtcfb_var;
sfb->fb.pseudo_palette = sfb->colreg;
sfb->fb.fix = smtcfb_fix; sfb->fb.par = sfb;
sfb->fb.var = smtcfb_var;
sfb->fb.pseudo_palette = sfb->colreg;
sfb->fb.par = sfb;
return sfb; return sfb;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册