From patchwork Sun Mar 22 23:14:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michel von Czettritz X-Patchwork-Id: 6068151 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 36B3ABF90F for ; Sun, 22 Mar 2015 23:14:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 368432022D for ; Sun, 22 Mar 2015 23:14:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 279B720220 for ; Sun, 22 Mar 2015 23:14:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752038AbbCVXOd (ORCPT ); Sun, 22 Mar 2015 19:14:33 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:37874 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907AbbCVXOd (ORCPT ); Sun, 22 Mar 2015 19:14:33 -0400 Received: by wixw10 with SMTP id w10so45078134wix.0; Sun, 22 Mar 2015 16:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=fHKsYhNppnIEMpCRlRiL1JA/GaXASNUz2ESVvhtaB7c=; b=As7ocpuLT0V/Yg0iiwA65fi6a7lVqYFSdjI3omOLCd/TDXZAIuT4J5pd/uUYWD7gwo cQxYnAylgvF1lIcDjI582wnGaQHjQjOHL1GAe1m3n3vYvlHZFjMiWpekaUTeeCoUwnYp Pk7F/98AuAfEcVbDArYCA7XIeCDzrLuhKXEp5C6Wudj2ArS8MOVXBktOyWeEa5Cg2+QI VmICJFrZmrYzYNmea5r5HquNlXoYX86fJMwdXk/PS/0oeU0OR+8cx+iWp1dY5lrPaUoe F51JkkSSLHRmMGmm8MNEqp+yNozNYQKdMEhEza9wgWfnFgQUx5+LJ3evVB5IMgpgD2jU fBWg== X-Received: by 10.194.190.10 with SMTP id gm10mr181075801wjc.91.1427066071577; Sun, 22 Mar 2015 16:14:31 -0700 (PDT) Received: from x230-arch (port-92-203-13-101.dynamic.qsc.de. [92.203.13.101]) by mx.google.com with ESMTPSA id jt8sm8571665wid.4.2015.03.22.16.14.30 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 22 Mar 2015 16:14:30 -0700 (PDT) Date: Mon, 23 Mar 2015 00:14:29 +0100 From: Michel von Czettritz To: sudipm.mukherjee@gmail.com Cc: teddy.wang@siliconmotion.com, kernel-janitors@vger.kernel.org, gregkh@linuxfoundation.org, linux-fbdev@vger.kernel.org Subject: [PATCH 11/13] staging: sm750: fix whitespace Message-ID: <20150322231429.GA17290@x230-arch.club.entropia.de> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes whitespace checkpatch.pl warnings and errors. Mainly whitespaces around operators. - ERROR: spaces required around that ':' (ctx:VxW) - ERROR: space required after that ';' (ctx:VxV) - ERROR: spaces required around that '<' (ctx:VxV) - ERROR: spaces required around that '!=' (ctx:VxV) And some small warnings around whitespace: - ERROR: trailing whitespace - WARNING: space prohibited before semicolon - WARNING: unnecessary whitespace before a quoted newline Signed-off-by: Michel von Czettritz --- drivers/staging/sm750fb/sm750.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 870bf6f..917e4b4 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -61,7 +61,7 @@ static char *g_option = NULL; static inline void myspin_lock(spinlock_t *sl) { struct lynx_share *share; - + share = container_of(sl, struct lynx_share, slock); if (share->dual) spin_lock(sl); @@ -70,7 +70,7 @@ static inline void myspin_lock(spinlock_t *sl) static inline void myspin_unlock(spinlock_t *sl) { struct lynx_share *share; - + share = container_of(sl, struct lynx_share, slock); if (share->dual) spin_unlock(sl); @@ -174,7 +174,7 @@ static int lynxfb_ops_cursor(struct fb_info *info, struct fb_cursor *fbcursor) if (fbcursor->set & FB_CUR_SETCMAP) { /* get the 16bit color of kernel means */ u16 fg, bg; - + fg = ((info->cmap.red[fbcursor->image.fg_color] & 0xf800))| ((info->cmap.green[fbcursor->image.fg_color] & 0xfc00) >> 5)| ((info->cmap.blue[fbcursor->image.fg_color] & 0xf800) >> 11); @@ -375,7 +375,7 @@ static int lynxfb_ops_set_par(struct fb_info *info) var->red.length = 8; var->green.offset = 8; var->green.length = 8; - var->blue.offset = 0 ; + var->blue.offset = 0; var->blue.length = 8; fix->visual = FB_VISUAL_TRUECOLOR; break; @@ -588,7 +588,7 @@ static int lynxfb_ops_check_var(struct fb_var_screeninfo *var, var->red.length = 8; var->green.offset = 8; var->green.length = 8; - var->blue.offset = 0 ; + var->blue.offset = 0; var->blue.length = 8; info->fix.visual = FB_VISUAL_TRUECOLOR; break; @@ -653,7 +653,7 @@ static int lynxfb_ops_setcolreg(unsigned regno, unsigned red, if (info->fix.visual == FB_VISUAL_TRUECOLOR && regno < 256) { u32 val; - + if (var->bits_per_pixel == 16 || var->bits_per_pixel == 32 || var->bits_per_pixel == 24) { @@ -718,7 +718,7 @@ static int sm750fb_set_drv(struct lynxfb_par *par) output->proc_setBLANK = (share->revid == SM750LE_REVISION_ID)?hw_sm750le_setBLANK:hw_sm750_setBLANK; output->clear = hw_sm750_output_clear; /* chip specific phase */ - share->accel.de_wait = (share->revid == SM750LE_REVISION_ID)?hw_sm750le_deWait: hw_sm750_deWait; + share->accel.de_wait = (share->revid == SM750LE_REVISION_ID)?hw_sm750le_deWait : hw_sm750_deWait; switch (spec_share->state.dataflow) { case sm750_simul_pri: output->paths = sm750_pnc; @@ -768,7 +768,7 @@ static int sm750fb_set_drv(struct lynxfb_par *par) return ret; } -static struct fb_ops lynxfb_ops={ +static struct fb_ops lynxfb_ops = { .owner = THIS_MODULE, .fb_check_var = lynxfb_ops_check_var, .fb_set_par = lynxfb_ops_set_par, @@ -796,7 +796,7 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index) lynx750_ext, NULL, vesa_modes, }; int cdb[] = {ARRAY_SIZE(lynx750_ext), 0, VESA_MODEDB_SIZE}; - static const char *mdb_desc[] ={ + static const char *mdb_desc[] = { "driver prepared modes", "kernel prepared default modedb", "kernel HELPERS prepared vesa_modes", @@ -865,7 +865,7 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index) } - for (i=0;i<3;i++) { + for (i = 0; i < 3; i++) { ret = fb_find_mode(var, info, g_fbmode[index], pdb[i], cdb[i], NULL, 8); @@ -976,7 +976,7 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index) goto exit; } - pr_debug("#2 show info->cmap : \nstart=%d,len=%d,red=%p,green=%p,blue=%p,transp=%p\n", + pr_debug("#2 show info->cmap :\nstart=%d,len=%d,red=%p,green=%p,blue=%p,transp=%p\n", info->cmap.start, info->cmap.len, info->cmap.red, info->cmap.green, info->cmap.blue, info->cmap.transp); @@ -1191,7 +1191,7 @@ ALLOC_FB: } else { struct lynxfb_par *par; int errno; - + pr_info("framebuffer #%d alloc okay\n", fbidx); share->fbinfo[fbidx] = info[fbidx]; par = info[fbidx]->par; @@ -1312,7 +1312,7 @@ static int __init lynxfb_setup(char *options) strsep() updates @options to pointer after the first found token it also returns the pointer ahead the token. */ - while ((opt = strsep(&options, ":"))!=NULL) { + while ((opt = strsep(&options, ":")) != NULL) { /* options that mean for any lynx chips are configured here */ if (!strncmp(opt, "noaccel", strlen("noaccel"))) g_noaccel = 1; @@ -1358,7 +1358,7 @@ static struct pci_driver lynxfb_driver = { static int __init lynxfb_init(void) { - char *option ; + char *option; int ret; #ifdef MODULE