From mboxrd@z Thu Jan 1 00:00:00 1970 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=-14.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 EC1FBC49EA7 for ; Fri, 25 Jun 2021 11:00:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B6CDC61425 for ; Fri, 25 Jun 2021 11:00:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B6CDC61425 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZNA+HRh2f4AjvBV1oTbNN7w9S5+f3Bt/1oSF5U6LUxo=; b=JIxYbabWST+9CA 6W5+acRsxAGHm4Laht+q4/q/zCYIvu5/yNe63pW5beGfFe70VYVqAIaKMZkSU9OrHVBP6ah+kvmFw ++g57MMAKkHTqPuJ2tdQi5gGlYyXp4g0iQc7X+sDM5MjrvdEjkcXzrACvEAubtZFGBhsVGGILyhSI Bw5sdD3n59te5cbVQV20WoZMGtnP2VALcf/nblGrHHRQWdeEtblD3l8PYA4PSqztDhAd10f05t0ea p58G9Wx1cm+vMhY9+kfDEHvfHBsj1pmd5pGwHGcYw78t3Is26QIa5txOmZP+5ilfPyci/SF000pk+ E4Y0b3MBYoMubce6Lt5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwjXb-001A82-Ji; Fri, 25 Jun 2021 10:58:32 +0000 Received: from mail-yb1-xb29.google.com ([2607:f8b0:4864:20::b29]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwjAI-00103o-Fd for linux-arm-kernel@lists.infradead.org; Fri, 25 Jun 2021 10:34:28 +0000 Received: by mail-yb1-xb29.google.com with SMTP id x189so3908000ybg.7 for ; Fri, 25 Jun 2021 03:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dmRoCA65RV/48lXb3m2W6DafsVGVfuNgmtDKbzVBlOA=; b=FWC1UozMFhPqEhM/hP+0y5unvamFh2uadP93DvbTr2PyYZf/kVCF3ETNEZqEX8zTMB oIl80SOor1haIN3P9b/UQkx6fTTs7v9lnF4gvBhpRK85zzD3U5OIIveCV2JUx6UmCBui A1Up9ynYHTTM5KXy+cP1HKCUiRRKFBCqEGhbFWeC92EqwNghmAfdP7ts0TEv6SqjDdJo U5bglVx+8fc04q13Nez+t2G0Q/sRLHE6d2SpVr9qgTb4dpV/fj5BAQ0EHKpbA2mwnU8z hWAMZbljrgeZOURPYcC0dwnU5PS8MhIwF/OMMt3tvZGAgg2swVIxSbdKPoxqwhFis+Ps pABw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dmRoCA65RV/48lXb3m2W6DafsVGVfuNgmtDKbzVBlOA=; b=rcTkeKssOUedt37u8/jyE38TM1rXankE1lINm8ZOCiSbmVEC76Dl+sQmcyMhPR03jo /BVoEcl8F/tDyV0bkc3XLY+PH10k+9uqHzx08+aKiS58qR9cDJVdvh8WC2OswQWrIpdE Q6Ma2d/6PgEupw0OZSig40DUxBjV9wbGoki0dVnyxg9eQr80KE2N2xDKPl94vCEyQpXO jJfL8oERVIpyrc2FLObFU4OMY/8zNFlx+b6lxhYJWbsiHmcvdPG8AGxRXqRKTkMzhnDE GJfvmRPxje4Y47QMb3Kwxa966givs8snZePKSNeUvEZVGgLU7zO507/u29VvuWwBBh7/ CGUg== X-Gm-Message-State: AOAM531eYYJYKKDP0LLTPU2pE8sFjY2Pgd7P1EzKczWGe1L5U3MdvT8b T04HAnwMWOUhJqozIkTZpqEHaKkdnr8aK9SoCJ1BkiNFIKA= X-Google-Smtp-Source: ABdhPJxbFIO0pNolVnUaaWoQ6RTnzn35uYITFDDGruDFy0XC7E5sj/9OtjT5EajI6aCgtMbCf8DtfpJd/Ny8AINHHfQ= X-Received: by 2002:a25:738e:: with SMTP id o136mr11354409ybc.469.1624617265375; Fri, 25 Jun 2021 03:34:25 -0700 (PDT) MIME-Version: 1.0 References: <20210624101517.15167-1-wjc@cdjrlc.com> In-Reply-To: <20210624101517.15167-1-wjc@cdjrlc.com> From: Bartosz Golaszewski Date: Fri, 25 Jun 2021 12:34:14 +0200 Message-ID: Subject: Re: [PATCH v2] gpio: mxs: Prefer unsigned int to bare use of unsigned To: Jinchao Wang Cc: "andy.shevchenko" , shawnguo , "s.hauer" , linux-arm-kernel , linux-gpio , linux-kernel X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210625_033426_606576_41AF7BF7 X-CRM114-Status: GOOD ( 16.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jun 24, 2021 at 12:15 PM Jinchao Wang wrote: > > Fix checkpatch warnings: > WARNING: Prefer 'unsigned int' to bare use of 'unsigned' > > Signed-off-by: Jinchao Wang > --- > - changes for v2: > - Use full prefix > > --- > drivers/gpio/gpio-mxs.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c > index 524b668eb1ac..31a336b86ff2 100644 > --- a/drivers/gpio/gpio-mxs.c > +++ b/drivers/gpio/gpio-mxs.c > @@ -229,14 +229,14 @@ static int mxs_gpio_init_gc(struct mxs_gpio_port *port, int irq_base) > return rv; > } > > -static int mxs_gpio_to_irq(struct gpio_chip *gc, unsigned offset) > +static int mxs_gpio_to_irq(struct gpio_chip *gc, unsigned int offset) > { > struct mxs_gpio_port *port = gpiochip_get_data(gc); > > return irq_find_mapping(port->domain, offset); > } > > -static int mxs_gpio_get_direction(struct gpio_chip *gc, unsigned offset) > +static int mxs_gpio_get_direction(struct gpio_chip *gc, unsigned int offset) > { > struct mxs_gpio_port *port = gpiochip_get_data(gc); > u32 mask = 1 << offset; > -- > 2.31.1 > Applied, thanks! Bartosz _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel