diff options
author | Roman Kiryanov <rkir@google.com> | 2018-07-03 17:43:09 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-07-03 17:43:09 +0200 |
commit | 38e8f5c80524d55d5c9814423a1a176b81f856da (patch) | |
tree | 4a2dc25281c8159ad3b1ed238078685974c80881 /drivers/video/fbdev/goldfishfb.c | |
parent | 13d7f936e9ccd9c9be38748a15a30a1dfa0beb64 (diff) | |
download | linux-stable-38e8f5c80524d55d5c9814423a1a176b81f856da.tar.gz linux-stable-38e8f5c80524d55d5c9814423a1a176b81f856da.tar.bz2 linux-stable-38e8f5c80524d55d5c9814423a1a176b81f856da.zip |
video: fbdev: Fix checkpatch warnings in goldfishfb.c
Address issues pointed by checkpatch.pl
Signed-off-by: Roman Kiryanov <rkir@google.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/goldfishfb.c')
-rw-r--r-- | drivers/video/fbdev/goldfishfb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfishfb.c index 3b70044773b6..de29c4ff77e5 100644 --- a/drivers/video/fbdev/goldfishfb.c +++ b/drivers/video/fbdev/goldfishfb.c @@ -124,6 +124,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; @@ -148,13 +149,14 @@ static int goldfish_fb_pan_display(struct fb_var_screeninfo *var, wait_event_timeout(fb->wait, fb->base_update_count != base_update_count, HZ / 15); if (fb->base_update_count == base_update_count) - pr_err("goldfish_fb_pan_display: timeout waiting for base update\n"); + pr_err("%s: timeout waiting for base update\n", __func__); return 0; } 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); |