summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Kiryanov <rkir@google.com>2018-03-15 14:40:28 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2018-03-16 12:09:12 +0000
commit39f8160f1772a09d27db46df1beb9c5d4ddb1508 (patch)
tree086c3e8d245f863a872d805965dda1e7bc051b3c
parent25aa0cb369ec84def46082eb64c3e5ef03c774fa (diff)
ANDROID: Address checkpatch warnings in goldfishfb
Change-Id: If16dd322f2635873a8d42c4f455ddb0a20864b6a Signed-off-by: Roman Kiryanov <rkir@google.com>
-rw-r--r--drivers/video/fbdev/goldfishfb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfishfb.c
index 1e56b50e4082..bae5ab990b60 100644
--- a/drivers/video/fbdev/goldfishfb.c
+++ b/drivers/video/fbdev/goldfishfb.c
@@ -125,6 +125,7 @@ static int goldfish_fb_check_var(struct fb_var_screeninfo *var,
static int goldfish_fb_set_par(struct fb_info *info)
{
struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb);
+
if (fb->rotation != fb->fb.var.rotate) {
info->fix.line_length = info->var.xres * 2;
fb->rotation = fb->fb.var.rotate;
@@ -156,6 +157,7 @@ static int goldfish_fb_pan_display(struct fb_var_screeninfo *var,
static int goldfish_fb_blank(int blank, struct fb_info *info)
{
struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb);
+
switch (blank) {
case FB_BLANK_NORMAL:
writel(1, fb->reg_base + FB_SET_BLANK);