From patchwork Fri May 18 23:31:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Kiryanov X-Patchwork-Id: 10412433 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9A188602CB for ; Fri, 18 May 2018 23:32:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 735E028B01 for ; Fri, 18 May 2018 23:32:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 53F0C28B03; Fri, 18 May 2018 23:32:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C999928B01 for ; Fri, 18 May 2018 23:32:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751888AbeERXcb (ORCPT ); Fri, 18 May 2018 19:32:31 -0400 Received: from mail-vk0-f73.google.com ([209.85.213.73]:32794 "EHLO mail-vk0-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751722AbeERXcb (ORCPT ); Fri, 18 May 2018 19:32:31 -0400 Received: by mail-vk0-f73.google.com with SMTP id b136-v6so7533748vke.0 for ; Fri, 18 May 2018 16:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:date:message-id:subject:from:to:cc; bh=d+XKeoBgXECs87IpaH9ypiAEJP0FH+7of2iuOwl98c4=; b=ERFvxtieIcw866sZrol2m57VF9LG1ZhTw4m5OL8jSSxQT6MwmnejudE4j9WJmO/lyY Em+MV6Pgq1WJ0k9auJQB65ytHwILAGi8x3GM7H6+YzBmmaBgZksThl91cGtqfuKsEyWn Pv895msijSR3sVpRp0KmixfSat+YC9yKP1J6hwuNmQxFehEigiHvVp66ZJZP4F/PQx9T Pb7P/FSXNgBV9/F8HcA3KEeaNsT226jizZaIKWJ8hYZEWMMzRlGpbSeWqz18JqCYzRDQ Zm0/eK9Oq3Age2IQzXFbX1VRfUzIR2Wgv6FbTobfshSmPK8cpkq9hyVapEOtqvZlCdSr AnUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc; bh=d+XKeoBgXECs87IpaH9ypiAEJP0FH+7of2iuOwl98c4=; b=tWJK/K/0i6bjn/QaIJoRwNaqG/gT9dCzmpwA68+nrsjHbZ3WjehV7TIzMTg3ydUMIG RTL2Qzw8cU1NlykgSh/FSkCNVFIGG+FjE6kJEVwtwsfK7zg5e5Gc2Zlkawe0r3utRIDz tM1I1rhqqDcm3Ti9p8dvP0TdNVQ5iHCl45SyEg/aFDmlAyzHsJ7L02K40cB3X0oeIXtW uBxIXe1eVZ8LzYqCh9VTPrxx1DsIAPJpOuSsibl8u0HqxoaRYVoM0xIZ6BrJfBOgR4IT DE6isM7Qk14eIf8FIoJteAElqSU0pZgpreDY+n7mmAVmzb2heAjN5uQs0/DajeOaihCv gKoQ== X-Gm-Message-State: ALKqPwdZ8uUf9rYEdIPfhKs5TLXGfw3+b8Dl9HQ70cuzy1HmzGcAi/Le VRaqVRNCACo+K7QNFjZblcdV5d0XoPcaEMtpUCEi6xYIEdqllre0QH23xwmublU9/tXrn+IC3O2 6sDBPIaIMygdhzqo2xzXD6g2HPgjoldBdv7oFu81acV5JO27meAm1T3DGBSdStxQ= X-Google-Smtp-Source: AB8JxZpbiXGalGl7u4djI78ADdcVRknm22h9ymj5Ki+oN0Y5eh0pyEZMibL1PrkDSV4WmKvWCMhIZSf0 MIME-Version: 1.0 X-Received: by 2002:ab0:5173:: with SMTP id f48-v6mr6177795uaa.98.1526686350359; Fri, 18 May 2018 16:32:30 -0700 (PDT) Date: Fri, 18 May 2018 16:31:56 -0700 Message-Id: <20180518233156.84527-1-rkir@google.com> X-Mailer: git-send-email 2.17.0.441.gb46fe60e1d-goog Subject: [PATCH] Fix checkpatch warnings in goldfishfb.c From: rkir@google.com To: linux-fbdev@vger.kernel.org, rkir@google.com Cc: Roman Kiryanov Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Roman Kiryanov Signed-off-by: Roman Kiryanov --- drivers/video/fbdev/goldfishfb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);