From patchwork Tue Jun 27 16:31:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aravind Thokala X-Patchwork-Id: 9812787 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 52EC560351 for ; Tue, 27 Jun 2017 16:31:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F0E3283C9 for ; Tue, 27 Jun 2017 16:31:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 33E21280CF; Tue, 27 Jun 2017 16:31:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D48D280CF for ; Tue, 27 Jun 2017 16:31:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751668AbdF0QbZ (ORCPT ); Tue, 27 Jun 2017 12:31:25 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35193 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751513AbdF0QbY (ORCPT ); Tue, 27 Jun 2017 12:31:24 -0400 Received: by mail-pg0-f65.google.com with SMTP id f127so4894773pgc.2; Tue, 27 Jun 2017 09:31:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=SXy2Py0zF4PO9125BlH4wsePYNMmjf2dazwp9QHafEE=; b=G9/BkRU9xSi6NfCylAwEf+ElnhCFKkc3gDIvHUX1NDQcDR00YXlYFXSqK4C6gJnYeI VGwEI0DXUpzOHnW5fSEEf395+D9BidgZq27Oi1D9MvyFRlkCnaKfn+cKHTGd1KX5HcXX 1MCDe0HUAvvf5B5CtpK/Ty5nu+qDRrkTOBNK+aWQOLzYeDzqgTObeG1hm0Tw4UGMVbDm dY50BDssPMrknyu00/HnhD3yjIxbPsPw8bHbznLXJKhyU31UQxATG8JSQcN1bLEvKHP4 u8BUedwR5Lnuzsh6PRTZgkzjvIarO5WBeX/+uijNGwtmNwnAsTkTQFxfdbViQs/sfFEb p/tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SXy2Py0zF4PO9125BlH4wsePYNMmjf2dazwp9QHafEE=; b=BwEIEJn+cyWdwxQhkOXlXU/CgQRzO7Kt+xdW3RxGqZPV0jBo+enq4IAIPKIkXuIX9r WlpebtlFBSirtSt+4aM+8yviW2zuv4lpDorNlXlByWT3BbWc/4Vveoqx3eoyzXU+flvl 423FPbO6zi5AlWwyLLoV4Glzpm2M4oXoTcw10c+qnwXcxOMechrrfur23KCacZ8vthlK u1LSU1j3++hUGiXT4nSqOcWDFM3iTfdpttx11GWxKtkK8c4Jeu95bsz8GKxPqXiMo8HG pWQylgZh41GCOCSDrgIAaw38fYQakJC5Kji/Kq3SpT2+ujVfYaqUsifNQsd7SNpOD1z2 6lqA== X-Gm-Message-State: AKS2vOxBOLmLimJqhDV8087P1iY2HuPkdP/Wa8fvb+LsJ2B2FVcEBQoM TP9AZCCKIEwYgg== X-Received: by 10.98.75.91 with SMTP id y88mr6178555pfa.227.1498581083785; Tue, 27 Jun 2017 09:31:23 -0700 (PDT) Received: from localhost.localdomain ([183.82.198.149]) by smtp.gmail.com with ESMTPSA id x3sm9324221pgx.29.2017.06.27.09.31.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Jun 2017 09:31:23 -0700 (PDT) From: Aravind Thokala To: Mark Brown Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Aravind Thokala Subject: [PATCH] spi/ath79: Fix checkpatch warnings Date: Tue, 27 Jun 2017 22:01:11 +0530 Message-Id: <1498581071-10883-1-git-send-email-aravind.thk@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the checkpatch.pl warnings on the driver file. Signed-off-by: Aravind Thokala --- drivers/spi/spi-ath79.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c index b89cee1..0719bd4 100644 --- a/drivers/spi/spi-ath79.c +++ b/drivers/spi/spi-ath79.c @@ -39,15 +39,15 @@ struct ath79_spi { u32 reg_ctrl; void __iomem *base; struct clk *clk; - unsigned rrw_delay; + unsigned int rrw_delay; }; -static inline u32 ath79_spi_rr(struct ath79_spi *sp, unsigned reg) +static inline u32 ath79_spi_rr(struct ath79_spi *sp, unsigned int reg) { return ioread32(sp->base + reg); } -static inline void ath79_spi_wr(struct ath79_spi *sp, unsigned reg, u32 val) +static inline void ath79_spi_wr(struct ath79_spi *sp, unsigned int reg, u32 val) { iowrite32(val, sp->base + reg); } @@ -57,7 +57,7 @@ static inline struct ath79_spi *ath79_spidev_to_sp(struct spi_device *spi) return spi_master_get_devdata(spi->master); } -static inline void ath79_spi_delay(struct ath79_spi *sp, unsigned nsecs) +static inline void ath79_spi_delay(struct ath79_spi *sp, unsigned int nsecs) { if (nsecs > sp->rrw_delay) ndelay(nsecs - sp->rrw_delay); @@ -148,9 +148,8 @@ static int ath79_spi_setup_cs(struct spi_device *spi) static void ath79_spi_cleanup_cs(struct spi_device *spi) { - if (gpio_is_valid(spi->cs_gpio)) { + if (gpio_is_valid(spi->cs_gpio)) gpio_free(spi->cs_gpio); - } } static int ath79_spi_setup(struct spi_device *spi) @@ -176,7 +175,7 @@ static void ath79_spi_cleanup(struct spi_device *spi) spi_bitbang_cleanup(spi); } -static u32 ath79_spi_txrx_mode0(struct spi_device *spi, unsigned nsecs, +static u32 ath79_spi_txrx_mode0(struct spi_device *spi, unsigned int nsecs, u32 word, u8 bits) { struct ath79_spi *sp = ath79_spidev_to_sp(spi);