From patchwork Tue Jun 27 16:07:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aravind Thokala X-Patchwork-Id: 9812727 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 92976603D7 for ; Tue, 27 Jun 2017 16:08:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEB58283AF for ; Tue, 27 Jun 2017 16:07:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2A5A28543; Tue, 27 Jun 2017 16:07:51 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2F424283AF for ; Tue, 27 Jun 2017 16:07:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=/h59ws/xG5AY79B1gps06SAANQ+42GnUGu/3xS5Axe8=; b=j+n BuicgXzkh/wp774R4E2yzZxUAJnt5K2RxeMQ7JhRASpES8FOTtzEvS/4fYyYD6gktKbn5YdSb8oRE npIOODWB+tIGGcYgXXuELfEyJhZA4QdB54erAsguP30eG/XIGBsluSD63ckWk6/5856zhvqf6DCtF bOjGjerqNOBGKfsBVV1C4mPRfB8TMz1A42/6PVkw9exC5rSqt1BsnrSRw6HokoEpzAas6vvgh9kGF AiwAlFFzbSn0iZk3JO2AqB3cdftOhRXVFiIiZTlICcCcOQMZjYMsN9qu6CVgHBOQJXlr+QMPJKcDC ibR28CSJ96K0iStvZLyjbxzqrA/9GxA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dPt1o-0003WA-Ft; Tue, 27 Jun 2017 16:07:48 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dPt1k-0003LW-Tt for linux-arm-kernel@lists.infradead.org; Tue, 27 Jun 2017 16:07:46 +0000 Received: by mail-pf0-x243.google.com with SMTP id e199so5330320pfh.0 for ; Tue, 27 Jun 2017 09:07: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=hOHbYmMZWm3Z05n4IVxEVcbDfIvBFjR2K/zqXno9rjg=; b=Vn6WYAXrA9dHSeGvlt7BMQj5Zj+2mU7qp9EGogFkum3p0JkNkeZ+Fukhj6OWz3YJgn sMevzz/qjrIJPurL8v71Bcz8dDF0sPW0QFSB/TsZwGIkL2qwQ18kLQ2jCoj4iBuDhXDp AGy/HoOqcwMrFJeiPcXKAngyW83TEAIL10siTTWKSChHh3sls5UtRvnY01ATyPaVy9Qy fLgFGIifLn5mH+2Pzh1FtGDTcfXI50nIYgAZh5+hadzZQSIwgLALp6yBZTQHqMrBe/wq IRum2J38So2eVSsEIewHBHy/9LoaT6Z8ScxS4Vjb09C4wiyb/N3pMl05O+X2KJr+SSvi oMhA== 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=hOHbYmMZWm3Z05n4IVxEVcbDfIvBFjR2K/zqXno9rjg=; b=pJNGGT8+wXwd8Kg5n8ji59V/v1yLfl0eYEtL0lB3bslLxl7U6c8MlbXmIEnG90FtVv KFnv8PR7ZUZTpswpHmC2kvVfXj2p5oZ9DseVv/nsBBjJKvOQ+RM4Cds9hJaNLeHJTxZa TFCaCd/dnS9xE+cPWYwPU2mlHOsQxfOAsE2QCbPRVwPLc97q+9rDhcB4ciZPVLRf1LQ/ +FQ0dgCXaGYzdLhSoKbkCaj3rs3yZb5Iur5yvBpdNfbqP9qw4vZwuFptj/DwBlSOfK3R WQG8LTb2ALBLLsGIQ1QjvH3FowqKwA5jFbbW2qprXbjMPznrIVWT/ZKpDFrZeNyF/xaE A7tw== X-Gm-Message-State: AKS2vOwlQYkHpzN0qO80SgksXT8PIrOT5F/Pv5USug+Y2ri8W0CJcn8B CmYNn14+rybXdA== X-Received: by 10.84.231.134 with SMTP id g6mr6600788plk.86.1498579643950; Tue, 27 Jun 2017 09:07:23 -0700 (PDT) Received: from localhost.localdomain ([183.82.198.149]) by smtp.gmail.com with ESMTPSA id p5sm6236694pgf.50.2017.06.27.09.07.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Jun 2017 09:07:23 -0700 (PDT) From: Aravind Thokala To: Mark Brown , Florian Fainelli Subject: [PATCH] spi/bcm63xx-hspi: Fix checkpatch warnings Date: Tue, 27 Jun 2017 21:37:10 +0530 Message-Id: <1498579630-10109-1-git-send-email-aravind.thk@gmail.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170627_090745_025961_A2DAE798 X-CRM114-Status: GOOD ( 11.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aravind Thokala , bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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-bcm63xx-hsspi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-bcm63xx-hsspi.c b/drivers/spi/spi-bcm63xx-hsspi.c index 5514cd0..17306c1 100644 --- a/drivers/spi/spi-bcm63xx-hsspi.c +++ b/drivers/spi/spi-bcm63xx-hsspi.c @@ -108,7 +108,7 @@ struct bcm63xx_hsspi { u8 cs_polarity; }; -static void bcm63xx_hsspi_set_cs(struct bcm63xx_hsspi *bs, unsigned cs, +static void bcm63xx_hsspi_set_cs(struct bcm63xx_hsspi *bs, unsigned int cs, bool active) { u32 reg; @@ -127,7 +127,7 @@ static void bcm63xx_hsspi_set_cs(struct bcm63xx_hsspi *bs, unsigned cs, static void bcm63xx_hsspi_set_clk(struct bcm63xx_hsspi *bs, struct spi_device *spi, int hz) { - unsigned profile = spi->chip_select; + unsigned int profile = spi->chip_select; u32 reg; reg = DIV_ROUND_UP(2048, DIV_ROUND_UP(bs->speed_hz, hz)); @@ -154,7 +154,7 @@ static void bcm63xx_hsspi_set_clk(struct bcm63xx_hsspi *bs, static int bcm63xx_hsspi_do_txrx(struct spi_device *spi, struct spi_transfer *t) { struct bcm63xx_hsspi *bs = spi_master_get_devdata(spi->master); - unsigned chip_select = spi->chip_select; + unsigned int chip_select = spi->chip_select; u16 opcode = 0; int pending = t->len; int step_size = HSSPI_BUFFER_LEN;