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 4C9A4C54EBE for ; Thu, 12 Jan 2023 18:52:01 +0000 (UTC) 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:MIME-Version:Message-Id:Date:Subject:Cc :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=gDc6Y/gaxL5Pe5bAfVzWkuZkQNL2iHIjwsyPfHXkbwA=; b=CL67QfK7Jz6kmU BjNNdol3A0ZFBfD0XLRDDCsDpvRmJnqr5uLHK7o93aq33M1CtyB1RotRGYthA9AxQfp0jlWYF0fkr unlPOvvxLSwmh94BmyHDwEp6O3c5NE+lREtTnTnSMspIozp8jYIeV5j6uj6XpgdKR74+bGQQVhrpp buWO9dwYGeXZ7Nim2kLblImwOjBNTbjeXNE/1IpZPdyRZdcK5SDtp4lIIdJLNM0r8jkoGhzBr/zWN LFBNFuD8TQBGKDkC5ikdO4Qw86iphYpxp/zq89rs34BhfJ5kXpxG0N/JqtxCmpgxhKjZJXyLTQP9u SGzQyS0nIWLmcqZDqy6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pG2fG-00GMQK-M5; Thu, 12 Jan 2023 18:51:02 +0000 Received: from mga11.intel.com ([192.55.52.93]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pG2fB-00GMMi-Oq for linux-arm-kernel@lists.infradead.org; Thu, 12 Jan 2023 18:50:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673549457; x=1705085457; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=LawLnTNYcPdrqJ0ONp98furwA0CqtsHwm67K1q+IPrQ=; b=XPzOVy4szxj6UTfuXd5UlXEqN3fmb6aBx1ZpjgRvyqVIqiynrXwxDtsD L8/W9AR4LzbZOibklql45ykK++Pxk8sRmVJmmTG/Mg+UHDI+Bir6UuIaG XvwaWsk8x1fslBIAbK3NiFAz0b8zjydanKQvqJBVx8cEmCn+FXaZpNblE 7MLxRjfZB4CjTKxSfqvrBnztdgI0uSPoWTu/O+8ro/T2wZPyAS5HgGULH RFBQrmxKhbOeYPzJry6qYaVLhxnNjOfEdvFlkxAosWQjv23hxPVG5vIGP Dc8wa+Jl6yOUx39o4duyOhn1tElZN8od3d4kebtiqvVhJ/tsvW8TSQ8Se w==; X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="321491087" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="321491087" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2023 10:50:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="659928630" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="659928630" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 12 Jan 2023 10:50:51 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id D1CA314B; Thu, 12 Jan 2023 20:51:25 +0200 (EET) From: Andy Shevchenko To: Wells Lu , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Dvorkin Dmitry , Linus Walleij , Andy Shevchenko Subject: [PATCH v1 1/1] pinctrl: sunplus: sppctl: Remove duplicate assignment of of_gpio_n_cells Date: Thu, 12 Jan 2023 20:51:22 +0200 Message-Id: <20230112185122.45216-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230112_105057_847834_E1ABB67C X-CRM114-Status: GOOD ( 12.10 ) 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 The of_gpio_n_cells default is 2 when ->of_xlate() callback is not defined. No need to assign it explicitly in the driver. Signed-off-by: Andy Shevchenko --- drivers/pinctrl/sunplus/sppctl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pinctrl/sunplus/sppctl.c b/drivers/pinctrl/sunplus/sppctl.c index 9c57bccc4bda..2ed0591fb51d 100644 --- a/drivers/pinctrl/sunplus/sppctl.c +++ b/drivers/pinctrl/sunplus/sppctl.c @@ -553,7 +553,6 @@ static int sppctl_gpio_new(struct platform_device *pdev, struct sppctl_pdata *pc gchip->base = -1; gchip->ngpio = sppctl_gpio_list_sz; gchip->names = sppctl_gpio_list_s; - gchip->of_gpio_n_cells = 2; pctl->pctl_grange.npins = gchip->ngpio; pctl->pctl_grange.name = gchip->label; -- 2.39.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel