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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 2FF11C3ABBB for ; Mon, 16 Sep 2024 01:53:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type:References:In-Reply-To:Date:To:From: Subject:Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=uZEaSeIL9EbteI4kOFz1NSnE7w9HpzPFiE8x0WksUXA=; b=PSe8GDo3HLwI41Mi1RP5DpHSnr eqfx+yIG0vpolOrVxy/k+zLgvNWo8rZdClvAmhjs69oj2afa+YMPgz+sMH0OxySB1VcFjmbBCqBMl 5uTkdA3x7RJhbWMKjigx6nG7Q9eMnPbV5J6Nsr9L4kCFMDSWykvroQGWZdgnB7CkRTA8m/C1rF7eF YlQs/xPvkahHg+b4dR09VNGWMj1dPd4acQ52DrH0orGjJbY3O9rUZ5Tea5LETFxHMGF1fuIFAjUZi glayFmKfGFFgs8MrWgSihLowJ3KS7rRR0uDnkZmN7N88jQVn53Zhn70Dm3iHPGNqSoZzSXlC84Eib XpkTvbCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sq0v0-00000002vJz-1sIu; Mon, 16 Sep 2024 01:52:46 +0000 Received: from pi.codeconstruct.com.au ([203.29.241.158] helo=codeconstruct.com.au) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sq0tv-00000002vEu-2q47 for linux-arm-kernel@lists.infradead.org; Mon, 16 Sep 2024 01:51:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1726451490; bh=uZEaSeIL9EbteI4kOFz1NSnE7w9HpzPFiE8x0WksUXA=; h=Subject:From:To:Date:In-Reply-To:References; b=CrZH3lD2I9/qXVN6rUU+bh4gfJZgmkfPHt9m6YWpsvjPIWqMCEHAKpvO0XPsHLNc9 xjFrwkAF5i7KEcog//0OIw4cmC6X/Q3r2zLe9nzCLIi5xc2vs1tJsxV9TGpHxK6bPD oETSy2W1TCAmLkZuTqU7WtnTds6w5uijd90soOyhaCbZlhSfDt544ed6leB5qFSl7j 9EFRUHXc6D8mbY7CfBkk3uVaClw6eXqataajYwg3jQ1PsjYXbe3/eUGAP/Q3lqHHyM jMEeFBnwlwspob5PnwwsKoXIWToVXEy/J14kxWM2dlslF9qWIrcq/GLZGqt1eua0yG eEshF1XuTX05Q== Received: from [192.168.68.112] (ppp118-210-161-36.adl-adc-lon-bras34.tpg.internode.on.net [118.210.161.36]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id BE3F56506F; Mon, 16 Sep 2024 09:51:23 +0800 (AWST) Message-ID: <2dc5f4bea2fbafa4f69df6d9ba167b8b62794e57.camel@codeconstruct.com.au> Subject: Re: [PATCH v3 2/6] gpio: aspeed: Remove the name for bank array From: Andrew Jeffery To: Billy Tsai , linus.walleij@linaro.org, brgl@bgdev.pl, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, joel@jms.id.au, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, BMC-SW@aspeedtech.com, Peter.Yin@quantatw.com Date: Mon, 16 Sep 2024 11:21:22 +0930 In-Reply-To: <20240913074325.239390-3-billy_tsai@aspeedtech.com> References: <20240913074325.239390-1-billy_tsai@aspeedtech.com> <20240913074325.239390-3-billy_tsai@aspeedtech.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240915_185139_955424_35CB7879 X-CRM114-Status: UNSURE ( 5.93 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 2024-09-13 at 15:43 +0800, Billy Tsai wrote: > The bank array name is only used to determine if the GPIO offset is valid= , > and this condition can be replaced by checking if the offset exceeds the > ngpio property. >=20 > Signed-off-by: Billy Tsai Reviewed-by: Andrew Jeffery