From patchwork Sat Jul 31 13:33:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 12412453 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E381C4338F for ; Sat, 31 Jul 2021 13:43:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 719C961042 for ; Sat, 31 Jul 2021 13:43:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233269AbhGaNoD (ORCPT ); Sat, 31 Jul 2021 09:44:03 -0400 Received: from smtpbg587.qq.com ([113.96.223.105]:34733 "EHLO smtpbg587.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233245AbhGaNoC (ORCPT ); Sat, 31 Jul 2021 09:44:02 -0400 X-Greylist: delayed 434 seconds by postgrey-1.27 at vger.kernel.org; Sat, 31 Jul 2021 09:44:01 EDT X-QQ-mid: bizesmtp49t1627738435t7gjx5lx Received: from ficus.lan (unknown [171.223.99.141]) by esmtp6.qq.com (ESMTP) with id ; Sat, 31 Jul 2021 21:33:53 +0800 (CST) X-QQ-SSF: 01000000002000B0C000B00A0000000 X-QQ-FEAT: D8iNkgpwlC9/P5c86WSBo4ku6rZX3Hujv5a2hHGeSDSWWjAiUfkaiFqyRQObe TraInq9qoOdytNauy/y1hC/dyvh9tBaRa4iLvx9IMVWFEa82s54QR2XlowU6b7ol0GcHyar eJhiN4XYYfmgI1yZRnq07FIKrSpZG/7c4Ex2hL6jy5BeGtxFGH+tao4MMAd84NS6r4/9gxg cEH3apgP/Q/Yg56v2PGGEQ7bftHaUpojUhzvWbw+Ghvj/Pj4q3FwVkSzGCg/nY0LT/eua1h pMJhTh7aR+gbEtRmcSvuTaTYKbvpAgCjbRUYZsGxZnx3FplXt/uH1X71g6wg3/BIWPBI/LF nevs5C86mRrHxTECuC6zp768I/t4w== X-QQ-GoodBg: 0 From: Jason Wang To: nsaenz@kernel.org Cc: broonie@kernel.org, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linux-spi@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jason Wang Subject: [PATCH] spi: bcm2835aux: use 'unsigned int' instead of 'unsigned' Date: Sat, 31 Jul 2021 21:33:42 +0800 Message-Id: <20210731133342.432575-1-wangborong@cdjrlc.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgspam:qybgspam3 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org Prefer 'unsigned int' to bare use of 'unsigned'. Signed-off-by: Jason Wang --- drivers/spi/spi-bcm2835aux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-bcm2835aux.c b/drivers/spi/spi-bcm2835aux.c index 37eab100a7d8..7d709a8c833b 100644 --- a/drivers/spi/spi-bcm2835aux.c +++ b/drivers/spi/spi-bcm2835aux.c @@ -143,12 +143,12 @@ static void bcm2835aux_debugfs_remove(struct bcm2835aux_spi *bs) } #endif /* CONFIG_DEBUG_FS */ -static inline u32 bcm2835aux_rd(struct bcm2835aux_spi *bs, unsigned reg) +static inline u32 bcm2835aux_rd(struct bcm2835aux_spi *bs, unsigned int reg) { return readl(bs->regs + reg); } -static inline void bcm2835aux_wr(struct bcm2835aux_spi *bs, unsigned reg, +static inline void bcm2835aux_wr(struct bcm2835aux_spi *bs, unsigned int reg, u32 val) { writel(val, bs->regs + reg);