From patchwork Mon Jul 16 10:32:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10004 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 7D85224024 for ; Mon, 16 Jul 2012 10:33:11 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 47B0AA18875 for ; Mon, 16 Jul 2012 10:33:11 +0000 (UTC) Received: by ghbz12 with SMTP id z12so5192878ghb.11 for ; Mon, 16 Jul 2012 03:33:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=RjUXpG5g/SdeESVYilVwzUaiwRU6hNt3aeYqJv9rmGM=; b=EPYVmFAzbvfsHwq5flh5HPmKFI2odKyvBuN5gtTwQLuoQD4m2vHkwgTCScZwhX8FHd 1ncERp6t4Iiote5xnzyhyCY1QF6df5Hf1PuYshevV28iUtutsowMhmRU3tYewHyLDzeD xsTZcN6K6nIQ59iWkMolfENl3ytgRszxZt3BZpuMz76wnkRRoUPXPMsIY8+AuUOIwz+6 4RXxE/g7ejP1q9k1ZxzADVKhbDl7lyvC2A2n1JPdjJTumHKctUXwypOAqmiaLgfKIjrT mLZbJ0C7pS26X3y+dW88qk3VmT7h4Y2DN6mA4wDmX4EQqoMyuvl6/CJwYJKNzFY/o+lT sfLQ== Received: by 10.50.203.39 with SMTP id kn7mr4721105igc.53.1342434790341; Mon, 16 Jul 2012 03:33:10 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.241.2 with SMTP id lc2csp6660ibb; Mon, 16 Jul 2012 03:33:09 -0700 (PDT) Received: by 10.236.79.6 with SMTP id h6mr8905581yhe.71.1342434789475; Mon, 16 Jul 2012 03:33:09 -0700 (PDT) Received: from mail-gh0-f178.google.com (mail-gh0-f178.google.com [209.85.160.178]) by mx.google.com with ESMTPS id e18si5780514ani.143.2012.07.16.03.33.09 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jul 2012 03:33:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.178 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.178 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-gh0-f178.google.com with SMTP id f1so5679603ghb.37 for ; Mon, 16 Jul 2012 03:33:09 -0700 (PDT) Received: by 10.68.130.67 with SMTP id oc3mr25896105pbb.18.1342434788869; Mon, 16 Jul 2012 03:33:08 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id hw6sm11649337pbc.73.2012.07.16.03.33.05 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jul 2012 03:33:08 -0700 (PDT) From: Sachin Kamat To: linux-mtd@lists.infradead.org Cc: dwmw2@infradead.org, David.Woodhouse@intel.com, ben-linux@fluff.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 5/6] mtd: s3c2410: Fix checkpatch warnings and errors related to whitespaces Date: Mon, 16 Jul 2012 16:02:26 +0530 Message-Id: <1342434747-27622-5-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1342434747-27622-1-git-send-email-sachin.kamat@linaro.org> References: <1342434747-27622-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmyYBI116gMeGQjAiS4/IeqcN1suT4+VHWcB4T/J0dSmkr6xHdZ8k88V9BJ40UqBMc91U05 Fixes checkpatch warnings and errors related to whitespaces. Signed-off-by: Sachin Kamat --- drivers/mtd/nand/s3c2410.c | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index 9c7e4bf..3e891e8 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -55,7 +55,7 @@ static struct nand_ecclayout nand_hw_eccoob = { .eccbytes = 3, .eccpos = {0, 1, 2}, - .oobfree = {{8, 8}} + .oobfree = {{8, 8} } }; /* controller and mtd information */ @@ -218,7 +218,7 @@ static int s3c_nand_calc_rate(int wanted, unsigned long clk, int max) return result; } -#define to_ns(ticks,clk) (((ticks) * NS_IN_KHZ) / (unsigned int)(clk)) +#define to_ns(ticks, clk) (((ticks) * NS_IN_KHZ) / (unsigned int)(clk)) /* controller setup */ @@ -261,7 +261,8 @@ static int s3c2410_nand_setrate(struct s3c2410_nand_info *info) } dev_info(info->device, "Tacls=%d, %dns Twrph0=%d %dns, Twrph1=%d %dns\n", - tacls, to_ns(tacls, clkrate), twrph0, to_ns(twrph0, clkrate), twrph1, to_ns(twrph1, clkrate)); + tacls, to_ns(tacls, clkrate), twrph0, to_ns(twrph0, clkrate), + twrph1, to_ns(twrph1, clkrate)); switch (info->cpu_type) { case TYPE_S3C2410: @@ -318,13 +319,13 @@ static int s3c2410_nand_inithw(struct s3c2410_nand_info *info) if (ret < 0) return ret; - switch (info->cpu_type) { - case TYPE_S3C2410: + switch (info->cpu_type) { + case TYPE_S3C2410: default: break; - case TYPE_S3C2440: - case TYPE_S3C2412: + case TYPE_S3C2440: + case TYPE_S3C2412: /* enable the controller and de-assert nFCE */ writel(S3C2440_NFCONT_ENABLE, info->regs + S3C2440_NFCONT); @@ -803,7 +804,7 @@ static void s3c2410_nand_init_chip(struct s3c2410_nand_info *info, dev_info(info->device, "System booted from NAND\n"); break; - } + } chip->IO_ADDR_R = chip->IO_ADDR_W; @@ -913,7 +914,7 @@ static void s3c2410_nand_update_chip(struct s3c2410_nand_info *info, static int s3c24xx_nand_probe(struct platform_device *pdev) { struct s3c2410_platform_nand *plat = to_nand_plat(pdev); - enum s3c_cpu_type cpu_type; + enum s3c_cpu_type cpu_type; struct s3c2410_nand_info *info; struct s3c2410_nand_mtd *nmtd; struct s3c2410_nand_set *sets;