From patchwork Thu Jan 12 18:43:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13098606 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 47070C54EBE for ; Thu, 12 Jan 2023 18:45: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=nFTJq6DgH5TKDtncyObZxzMX4tlcC54Hhg9gXA2erbg=; b=MZVByh6nN8jsH6 8cYzJ7SaaCsyviztFBitH3riKE4z/cRHL4usQChErlDdB2mmQwO+8P9opg8VszNna5twsBrHwFAov OOVTo4yf18Nz8Pnm2dshknjQ49N4fVEgI8MgzXEZ/3E3s/mczS3RWmyfL8a3GXx1toTDjwrDuG2HN erfJtZBtn/zf8gntrVnPd5j7Wtmkxko+QYyHK6TNZChb7zCixOhLkzPsXA5FldQruaASM9rH5tqnt ZwbGHBgwgjqI9YZyl1FJqS0LViwumMe0EcC2dM43TT8f+FT/CS9+8gYv6W0TX/V/jHNNVcpESn92t xuIO705CwpwyINwK+Aaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pG2Y3-00GKFw-Eq; Thu, 12 Jan 2023 18:43:35 +0000 Received: from mga03.intel.com ([134.134.136.65]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pG2Xx-00GKCw-K6 for linux-arm-kernel@lists.infradead.org; Thu, 12 Jan 2023 18:43:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673549009; x=1705085009; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=7fLXc5FhVYxdThyYteHzhqZSsr0X9gRg8/NHTR49Nzk=; b=iS4vlrlBzls1oAJh2TxguBPoTXBNQyNECZ2fHbt1ltSTojukizPcFKBd SjsPPtDfM1tzmslSugiFBVwjjJoco33F3cFmN/Jmzclt+SFtQ3G4I4hBO HDGxCozMr4JkHdtKzcp2+UVXbkauJ00pxrE9kyvYaHIbCIUr7mGPA0263 YESF9bljGdtLHG4KW72i9BoPwdso6qr4vJ/uNmX8aPGik/22+HdzSg3IN HlWBYpug7as3PksUSmqSO70JXtqzQ0Rf5mmFpSMt6GKVbPZxt7/Cj9zMb 5v8YLEh4EjJHDxjF18hyirsJtIcRuA1MH9SZw7J8unWzOgkuzbQvVK8i9 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="325844684" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="325844684" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2023 10:43:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="781868543" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="781868543" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga004.jf.intel.com with ESMTP; 12 Jan 2023 10:43:18 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 58F64130; Thu, 12 Jan 2023 20:43:52 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linus Walleij , Baruch Siach Subject: [PATCH v1 1/1] pinctrl: digicolor: Remove duplicate assignment of of_gpio_n_cells Date: Thu, 12 Jan 2023 20:43:47 +0200 Message-Id: <20230112184347.79642-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_104329_728394_2ECA3C7E X-CRM114-Status: GOOD ( 10.34 ) 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 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/pinctrl-digicolor.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-digicolor.c b/drivers/pinctrl/pinctrl-digicolor.c index cc3546fc4610..05213261b8a4 100644 --- a/drivers/pinctrl/pinctrl-digicolor.c +++ b/drivers/pinctrl/pinctrl-digicolor.c @@ -248,7 +248,6 @@ static int dc_gpiochip_add(struct dc_pinmap *pmap) chip->set = dc_gpio_set; chip->base = -1; chip->ngpio = PINS_COUNT; - chip->of_gpio_n_cells = 2; spin_lock_init(&pmap->lock);