From patchwork Tue Aug 21 04:51:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10822 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 2DCAF23E00 for ; Tue, 21 Aug 2012 04:53:21 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id E943EA18A63 for ; Tue, 21 Aug 2012 04:53:12 +0000 (UTC) Received: by iadj38 with SMTP id j38so3222279iad.11 for ; Mon, 20 Aug 2012 21:53:19 -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:x-gm-message-state; bh=CcWMbc5rqmUek6pEtHNd+TJ2+1eiX2mm0ei3+BYYCMo=; b=oAy+MtH5kDrKhAMyHPAhXAnX1Omvp/CK+EIWF7OuIDhj+TSxamJ39u9CoPKb9LOrS+ zwGhHkeGhbtWDGNXM72aSloOIwVf5FLwTkI+GgSUsklYsZrT/xphKKmVZFxQJT8lHiCh D7RJAbmu+aPO73m/PhTxWxEdBctCenLuBYN+x35UmSJhMbmu1HBcBzIfBzmQ3ILxM71j QBGXCseBmVKGFJMuw3CWzXxKhEnZYAYMkKaaBH6qvsxKJyJolNtP4qLv+h/9vEJit7Ud zmohO50SJAwwawLU9/C9xebPnMuwSdv++njLoUVBOu+lO9EkY07yAlo8U71osHs30Ehr fr9Q== Received: by 10.42.60.139 with SMTP id q11mr12779843ich.53.1345524799718; Mon, 20 Aug 2012 21:53:19 -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.50.184.232 with SMTP id ex8csp121963igc; Mon, 20 Aug 2012 21:53:19 -0700 (PDT) Received: by 10.68.229.2 with SMTP id sm2mr40274651pbc.57.1345524798879; Mon, 20 Aug 2012 21:53:18 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id qt3si1199854pbc.353.2012.08.20.21.53.18 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Aug 2012 21:53:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.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 pbcmd12 with SMTP id md12so8788192pbc.37 for ; Mon, 20 Aug 2012 21:53:18 -0700 (PDT) Received: by 10.68.131.103 with SMTP id ol7mr40563646pbb.71.1345524798368; Mon, 20 Aug 2012 21:53:18 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id sj5sm626868pbc.30.2012.08.20.21.53.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Aug 2012 21:53:17 -0700 (PDT) From: Sachin Kamat To: linux-mtd@lists.infradead.org Cc: dedekind1@gmail.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 6/6 - Resend] mtd: s3c2410: Fix line over 80 characters warning Date: Tue, 21 Aug 2012 10:21:15 +0530 Message-Id: <1345524675-12940-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkSGHncGtki6iGHjHIVEpxOGStXl5x48SK8ui6HWYXAhDRUGg+kaPGmbKg0jRLznyaCiz4s Fixes the following checkpatch warnings: WARNING: line over 80 characters Signed-off-by: Sachin Kamat --- Modified alignments as suggested by Artem. --- 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 c863f7d..70f48f8 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -541,7 +541,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) @@ -553,7 +554,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); @@ -567,7 +569,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); @@ -576,12 +579,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); @@ -621,13 +626,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); @@ -671,7 +678,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); @@ -683,7 +691,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 @@ -1006,7 +1015,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);