提交 e4eed858 编写于 作者: C Colin Ian King 提交者: Bartlomiej Zolnierkiewicz

video: fbdev: nvidia: clean up indentation issues and comment block

There is a hunk of code that is incorrectly indented, clean up the
indentation and a comment block. Also remove block braces around a
one line statement on an if condition and add missing spaces after
if keywords.
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Cc: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200113144627.219967-1-colin.king@canonical.com
上级 31a2a329
...@@ -168,27 +168,26 @@ static int nvidia_panel_tweak(struct nvidia_par *par, ...@@ -168,27 +168,26 @@ static int nvidia_panel_tweak(struct nvidia_par *par,
{ {
int tweak = 0; int tweak = 0;
if (par->paneltweak) { if (par->paneltweak) {
tweak = par->paneltweak; tweak = par->paneltweak;
} else { } else {
/* begin flat panel hacks */ /* Begin flat panel hacks.
/* This is unfortunate, but some chips need this register * This is unfortunate, but some chips need this register
tweaked or else you get artifacts where adjacent pixels are * tweaked or else you get artifacts where adjacent pixels are
swapped. There are no hard rules for what to set here so all * swapped. There are no hard rules for what to set here so all
we can do is experiment and apply hacks. */ * we can do is experiment and apply hacks.
*/
if(((par->Chipset & 0xffff) == 0x0328) && (state->bpp == 32)) { if (((par->Chipset & 0xffff) == 0x0328) && (state->bpp == 32)) {
/* At least one NV34 laptop needs this workaround. */ /* At least one NV34 laptop needs this workaround. */
tweak = -1; tweak = -1;
} }
if((par->Chipset & 0xfff0) == 0x0310) { if ((par->Chipset & 0xfff0) == 0x0310)
tweak = 1; tweak = 1;
} /* end flat panel hacks */
/* end flat panel hacks */ }
}
return tweak;
return tweak;
} }
static void nvidia_screen_off(struct nvidia_par *par, int on) static void nvidia_screen_off(struct nvidia_par *par, int on)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册