From patchwork Mon May 27 19:57:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagannadha Sutradharudu Teki X-Patchwork-Id: 246650 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 44C542C02A9 for ; Tue, 28 May 2013 06:13:38 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B8DE94A054; Mon, 27 May 2013 22:13:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bqJwIxKRMiqQ; Mon, 27 May 2013 22:13:32 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0C0C54A056; Mon, 27 May 2013 22:13:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 16C664A041 for ; Mon, 27 May 2013 22:13:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RPki1kBjkAL0 for ; Mon, 27 May 2013 22:13:08 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 BL_NJABL=ERR(-1.5) (only DNSBL check requested) Received: from db8outboundpool.messaging.microsoft.com (mail-db8lp0184.outbound.messaging.microsoft.com [213.199.154.184]) by theia.denx.de (Postfix) with ESMTPS id 0EFEF4A033 for ; Mon, 27 May 2013 22:12:54 +0200 (CEST) Received: from mail115-db8-R.bigfish.com (10.174.8.226) by DB8EHSOBE027.bigfish.com (10.174.4.90) with Microsoft SMTP Server id 14.1.225.23; Mon, 27 May 2013 19:57:40 +0000 Received: from mail115-db8 (localhost [127.0.0.1]) by mail115-db8-R.bigfish.com (Postfix) with ESMTP id E45F41401F3; Mon, 27 May 2013 19:57:40 +0000 (UTC) X-Forefront-Antispam-Report: CIP:149.199.60.83; KIP:(null); UIP:(null); IPV:NLI; H:xsj-gw1; RD:unknown-60-83.xilinx.com; EFVD:NLI X-SpamScore: 7 X-BigFish: VPS7(zzzz1f42h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ah1fc6hzz8275bhz2fh95h668h839hd24hf0ah119dh1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h14ddh1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1b0ah1d0ch1d2eh1d3fh906i192cn1155h) Received-SPF: pass (mail115-db8: domain of xilinx.com designates 149.199.60.83 as permitted sender) client-ip=149.199.60.83; envelope-from=jagannadha.sutradharudu-teki@xilinx.com; helo=xsj-gw1 ; helo=xsj-gw1 ; Received: from mail115-db8 (localhost.localdomain [127.0.0.1]) by mail115-db8 (MessageSwitch) id 13696846593181_20812; Mon, 27 May 2013 19:57:39 +0000 (UTC) Received: from DB8EHSMHS011.bigfish.com (unknown [10.174.8.250]) by mail115-db8.bigfish.com (Postfix) with ESMTP id F2632420045; Mon, 27 May 2013 19:57:38 +0000 (UTC) Received: from xsj-gw1 (149.199.60.83) by DB8EHSMHS011.bigfish.com (10.174.4.21) with Microsoft SMTP Server id 14.1.225.23; Mon, 27 May 2013 19:57:38 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-smtp1.xilinx.com) by xsj-gw1 with esmtp (Exim 4.63) (envelope-from ) id 1Uh3Y2-0006VI-20; Mon, 27 May 2013 12:57:38 -0700 From: Jagannadha Sutradharudu Teki To: Date: Tue, 28 May 2013 01:27:27 +0530 X-Mailer: git-send-email 1.7.4 In-Reply-To: <1369684648-3213-1-git-send-email-jaganna@xilinx.com> References: <1369684648-3213-1-git-send-email-jaganna@xilinx.com> X-RCIS-Action: ALLOW MIME-Version: 1.0 Message-ID: X-OriginatorOrg: xilinx.com Cc: Tom Rini , Jagannadha@theia.denx.de, Jagannadha Sutradharudu Teki Subject: [U-Boot] [PATCH 4/5] sf: Fix line over 80 chars cleanup X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Code cleanup line over 80 characters. Signed-off-by: Jagannadha Sutradharudu Teki --- drivers/mtd/spi/spi_flash.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index 111185a..d2bee3a 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -42,7 +42,8 @@ static int spi_flash_read_write(struct spi_slave *spi, debug("SF: Failed to send command (%zu bytes): %d\n", cmd_len, ret); } else if (data_len != 0) { - ret = spi_xfer(spi, data_len * 8, data_out, data_in, SPI_XFER_END); + ret = spi_xfer(spi, data_len * 8, data_out, data_in, + SPI_XFER_END); if (ret) debug("SF: Failed to transfer %zu bytes of data: %d\n", data_len, ret); @@ -239,11 +240,13 @@ int spi_flash_cmd_erase(struct spi_flash *flash, u32 offset, size_t len) if (ret) goto out; - ret = spi_flash_cmd_write(flash->spi, cmd, sizeof(cmd), NULL, 0); + ret = spi_flash_cmd_write(flash->spi, cmd, sizeof(cmd), + NULL, 0); if (ret) goto out; - ret = spi_flash_cmd_wait_ready(flash, SPI_FLASH_PAGE_ERASE_TIMEOUT); + ret = spi_flash_cmd_wait_ready(flash, + SPI_FLASH_PAGE_ERASE_TIMEOUT); if (ret) goto out; }