From patchwork Mon Jul 16 10:32:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10005 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 7FCA524024 for ; Mon, 16 Jul 2012 10:33:14 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 36F6EA18875 for ; Mon, 16 Jul 2012 10:33:14 +0000 (UTC) Received: by ggnf1 with SMTP id f1so5203226ggn.11 for ; Mon, 16 Jul 2012 03:33:13 -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=kgxgvHtLg80kEACPh66iTGcGkYncV1Fp6UidLD0eitk=; b=o+VH1N9J1slOx/1zic+xaFvpFNK3UjWTWWwRbPbApUuyONkQBYC3YjMxtisV3HGzfm XMy0if7ElZL8I/EZ22y2IWxACrclvK9WOdBS7FbN6271n0hGXGDGGfoVx+xpKYGtzeo1 IRqvwFB+e4daVzN4wSD0vo3nRL8jtL4i3P4DsJgDtRsYNH6tvZuxFypj7i4o6enJ7SNy ZRCNFXuXI4KkaoVDOJFXA8cH4puttaec1XDMM+l6y8fXpH8U4393T3qiz8GVQ8c3Xwd4 q1CtiDTz8iNtixN6yOpHyUxvwkqTJrkyKljKOqLuEypUBKSSZGO29pUTc+7hyKny6Xu8 E/FA== Received: by 10.50.163.99 with SMTP id yh3mr4704270igb.53.1342434793422; Mon, 16 Jul 2012 03:33:13 -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 lc2csp6662ibb; Mon, 16 Jul 2012 03:33:12 -0700 (PDT) Received: by 10.236.190.163 with SMTP id e23mr3062141yhn.36.1342434792639; Mon, 16 Jul 2012 03:33:12 -0700 (PDT) Received: from mail-yw0-f50.google.com (mail-yw0-f50.google.com [209.85.213.50]) by mx.google.com with ESMTPS id b49si13136799yho.138.2012.07.16.03.33.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jul 2012 03:33:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.213.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.213.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.213.50 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-yw0-f50.google.com with SMTP id j63so5433367yhj.37 for ; Mon, 16 Jul 2012 03:33:12 -0700 (PDT) Received: by 10.66.79.40 with SMTP id g8mr21764554pax.27.1342434792013; Mon, 16 Jul 2012 03:33:12 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id hw6sm11649337pbc.73.2012.07.16.03.33.09 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jul 2012 03:33:11 -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 6/6] mtd: s3c2410: Fix line over 80 characters warning Date: Mon, 16 Jul 2012 16:02:27 +0530 Message-Id: <1342434747-27622-6-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: ALoCoQnFcnQ9NAqdYts94rT1lVAVsoDotQ9w1zQ3w+SFXN9yI0PDUXjsnYzc6zXQGkdCTlSHwK6o Fixes the following checkpatch warnings: WARNING: line over 80 characters Signed-off-by: Sachin Kamat --- drivers/mtd/nand/s3c2410.c | 30 ++++++++++++++++++++---------- 1 files changed, 20 insertions(+), 10 deletions(-) diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index 3e891e8..6ee85c8 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -540,7 +540,8 @@ static void s3c2412_nand_enable_hwecc(struct mtd_info *mtd, int mode) unsigned long ctrl; ctrl = readl(info->regs + S3C2440_NFCONT); - writel(ctrl | S3C2412_NFCONT_INIT_MAIN_ECC, info->regs + S3C2440_NFCONT); + writel(ctrl | S3C2412_NFCONT_INIT_MAIN_ECC, + info->regs + S3C2440_NFCONT); } static void s3c2440_nand_enable_hwecc(struct mtd_info *mtd, int mode) @@ -552,7 +553,8 @@ static void s3c2440_nand_enable_hwecc(struct mtd_info *mtd, int mode) writel(ctrl | S3C2440_NFCONT_INITECC, info->regs + S3C2440_NFCONT); } -static int s3c2410_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) +static int s3c2410_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, + u_char *ecc_code) { struct s3c2410_nand_info *info = s3c2410_nand_mtd_toinfo(mtd); @@ -566,7 +568,8 @@ static int s3c2410_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u return 0; } -static int s3c2412_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) +static int s3c2412_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, + u_char *ecc_code) { struct s3c2410_nand_info *info = s3c2410_nand_mtd_toinfo(mtd); unsigned long ecc = readl(info->regs + S3C2412_NFMECC0); @@ -575,12 +578,14 @@ static int s3c2412_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u ecc_code[1] = ecc >> 8; ecc_code[2] = ecc >> 16; - pr_debug("calculate_ecc: returning ecc %02x,%02x,%02x\n", ecc_code[0], ecc_code[1], ecc_code[2]); + pr_debug("calculate_ecc: returning ecc %02x,%02x,%02x\n", + ecc_code[0], ecc_code[1], ecc_code[2]); return 0; } -static int s3c2440_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, u_char *ecc_code) +static int s3c2440_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, + u_char *ecc_code) { struct s3c2410_nand_info *info = s3c2410_nand_mtd_toinfo(mtd); unsigned long ecc = readl(info->regs + S3C2440_NFMECC0); @@ -619,13 +624,15 @@ static void s3c2440_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) } } -static void s3c2410_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) +static void s3c2410_nand_write_buf(struct mtd_info *mtd, const u_char *buf, + int len) { struct nand_chip *this = mtd->priv; writesb(this->IO_ADDR_W, buf, len); } -static void s3c2440_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len) +static void s3c2440_nand_write_buf(struct mtd_info *mtd, const u_char *buf, + int len) { struct s3c2410_nand_info *info = s3c2410_nand_mtd_toinfo(mtd); @@ -669,7 +676,8 @@ static inline int s3c2410_nand_cpufreq_register(struct s3c2410_nand_info *info) CPUFREQ_TRANSITION_NOTIFIER); } -static inline void s3c2410_nand_cpufreq_deregister(struct s3c2410_nand_info *info) +static inline void s3c2410_nand_cpufreq_deregister( + struct s3c2410_nand_info *info) { cpufreq_unregister_notifier(&info->freq_transition, CPUFREQ_TRANSITION_NOTIFIER); @@ -681,7 +689,8 @@ static inline int s3c2410_nand_cpufreq_register(struct s3c2410_nand_info *info) return 0; } -static inline void s3c2410_nand_cpufreq_deregister(struct s3c2410_nand_info *info) +static inline void s3c2410_nand_cpufreq_deregister( + struct s3c2410_nand_info *info) { } #endif @@ -1004,7 +1013,8 @@ static int s3c24xx_nand_probe(struct platform_device *pdev) nmtd = info->mtds; for (setno = 0; setno < nr_sets; setno++, nmtd++) { - pr_debug("initialising set %d (%p, info %p)\n", setno, nmtd, info); + pr_debug("initialising set %d (%p, info %p)\n", + setno, nmtd, info); s3c2410_nand_init_chip(info, nmtd, sets);