From patchwork Sun Mar 22 23:13:41 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: 6068121 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A6A279F399 for ; Sun, 22 Mar 2015 23:13:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A74882022D for ; Sun, 22 Mar 2015 23:13:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A41BC20220 for ; Sun, 22 Mar 2015 23:13:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751971AbbCVXNp (ORCPT ); Sun, 22 Mar 2015 19:13:45 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:34323 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751930AbbCVXNo (ORCPT ); Sun, 22 Mar 2015 19:13:44 -0400 Received: by wibg7 with SMTP id g7so24982378wib.1; Sun, 22 Mar 2015 16:13:43 -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=0X6CGOueeFuyYfV1oilscU2i9J34pSG8ay2jks55i18=; b=eSli6iZGD/x2VHz1C/4ezBM0DXzojTvXHcm2KIy3ZQQdffh8p1HP0cxTv/NLfkND4O lOhFxMqhcZsfN2R1XpwGnkwYPLH6vGNdTeHT1/3vZsxwOrbeP378+Le3Zn1WjqG4uqHO MZJ3IgyPOjWm3VNCiZZpZq7VIns8Ypz9RV6W9CnnD8HSItLXCZ5NKBXNkPN+JfK4B/jq 30hnoSyd+hTS1kS6aGU/035SyqcUzYe79hSaSg4FclZL6o/sYNlUU+ozuNFsdJxrit2S k1Pnpo1rQJcU2PbJi2MSWV00W9/itQrNAEm28uuP0SauR6jVAcXfbpRefzrFN3wfn0Mg uO8Q== X-Received: by 10.180.79.65 with SMTP id h1mr14555559wix.59.1427066023185; Sun, 22 Mar 2015 16:13:43 -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 l9sm8477673wij.16.2015.03.22.16.13.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 22 Mar 2015 16:13:42 -0700 (PDT) Date: Mon, 23 Mar 2015 00:13:41 +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 08/13] staging: sm750: comment formating Message-ID: <20150322231340.GA17233@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 checkpatch.pl warnings / errors: - "WARNING: please, no space before tabs" - "ERROR: do not use C99 // comments" Signed-off-by: Michel von Czettritz --- drivers/staging/sm750fb/sm750.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 54857ba..ab58987 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -74,19 +74,19 @@ static inline void myspin_unlock(spinlock_t *sl) spin_unlock(sl); } static const struct fb_videomode lynx750_ext[] = { - /* 1024x600-60 VESA [1.71:1] */ + /* 1024x600-60 VESA [1.71:1]*/ {NULL, 60, 1024, 600, 20423, 144, 40, 18, 1, 104, 3, FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED}, - /* 1024x600-70 VESA */ + /* 1024x600-70 VESA */ {NULL, 70, 1024, 600, 17211, 152, 48, 21, 1, 104, 3, FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED}, - /* 1024x600-75 VESA */ + /* 1024x600-75 VESA */ {NULL, 75, 1024, 600, 15822, 160, 56, 23, 1, 104, 3, FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED}, - /* 1024x600-85 VESA */ + /* 1024x600-85 VESA */ {NULL, 85, 1024, 600, 13730, 168, 56, 26, 1, 112, 3, FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED}, @@ -98,7 +98,7 @@ static const struct fb_videomode lynx750_ext[] = { {NULL, 60, 1280, 720, 13426, 162, 86, 22, 1, 136, 3, FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED}, - /* 1280x768@60 */ + /* 1280x768@60 */ {NULL, 60, 1280, 768, 12579, 192, 64, 20, 3, 128, 7, FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED}, @@ -113,7 +113,7 @@ static const struct fb_videomode lynx750_ext[] = { {NULL, 60, 1368, 768, 11647, 216, 72, 23, 1, 144, 3, FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED}, - /* 1440 x 900 [16:10] */ + /* 1440 x 900 [16:10] */ {NULL, 60, 1440, 900, 9392, 232, 80, 28, 1, 152, 3, FB_SYNC_VERT_HIGH_ACT, FB_VMODE_NONINTERLACED}, @@ -610,7 +610,7 @@ static int lynxfb_ops_setcolreg(unsigned regno, unsigned red, var = &info->var; ret = 0; - //pr_debug("regno=%d,red=%d,green=%d,blue=%d\n",regno,red,green,blue); + /*pr_debug("regno=%d,red=%d,green=%d,blue=%d\n",regno,red,green,blue);*/ if (regno > 256) { pr_err("regno = %d\n", regno); return -EINVAL; @@ -683,7 +683,7 @@ static int sm750fb_set_drv(struct lynxfb_par *par) crtc->proc_panDisplay = hw_sm750_pan_display; crtc->clear = hw_sm750_crtc_clear; crtc->line_pad = 16; - //crtc->xpanstep = crtc->ypanstep = crtc->ywrapstep = 0; + /*crtc->xpanstep = crtc->ypanstep = crtc->ywrapstep = 0;*/ crtc->xpanstep = 8; crtc->ypanstep = 1; crtc->ywrapstep = 0; @@ -858,7 +858,7 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index) break; } else if (ret == 3) { pr_warn("wanna use default mode\n"); - // break; + /*break;*/ } else if (ret == 4) { pr_warn("fall back to any valid mode\n"); } else { @@ -951,11 +951,11 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index) exit: lynxfb_ops_check_var(var, info); - // lynxfb_ops_set_par(info); + /* lynxfb_ops_set_par(info);*/ return ret; } -/* chip specific g_option configuration routine */ +/* chip specific g_option configuration routine */ static void sm750fb_setup(struct lynx_share *share, char *src) { struct sm750_share *spec_share; @@ -1235,7 +1235,7 @@ static void __exit lynxfb_pci_remove(struct pci_dev *pdev) if (share->mtrr.vram_added) mtrr_del(share->mtrr.vram, share->vidmem_start, share->vidmem_size); #endif - // pci_release_regions(pdev); + /*pci_release_regions(pdev);*/ iounmap(share->pvReg); iounmap(share->pvMem); @@ -1265,7 +1265,7 @@ static int __init lynxfb_setup(char *options) tmp = g_settings; - /* Notes: + /* Notes: char * strsep(char **s,const char * ct); @s: the string to be searched @ct :the characters to search for