From patchwork Fri Sep 2 18:26:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 602531 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D22AECAAD5 for ; Fri, 2 Sep 2022 18:36:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229948AbiIBSgW (ORCPT ); Fri, 2 Sep 2022 14:36:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbiIBSgU (ORCPT ); Fri, 2 Sep 2022 14:36:20 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE7FED31DC; Fri, 2 Sep 2022 11:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662143772; x=1693679772; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=u/e/eIbdBJutq5AbGgNzaebhsZM9EByb+sMUL/rPFWU=; b=jPo2tPZ2zbUGRaSjfTTSpypfnhcZm0/hT/eD5EbeRjEdRM42ma2tuhlV hI2vFE1ZLiQiqAgXy/zc09rFSr//441PnC9QadN1TqZIhlcsLFPQIOuFR 16S0zhFRzXp93ENRPJxVDIn6DuOU8EL36ewds6AVTGCM1A/4yuX6yQPf9 h254oq4FNDkrGNaO2Y8onSrtqamwdy3Fhb88SnCK/kAwdhNTRHcLunerf pDKxAur/ym33Yiqc2ws7ooRU8WuxL1GE85U3TAOIU6cJRavwwp7NgstzL g0MtsBRjnPYOYAnjFsFcMMl0LVZuY2MBNcSx0lSBIqUvwx4vTJCXluI3k A==; X-IronPort-AV: E=McAfee;i="6500,9779,10458"; a="382351237" X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="382351237" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2022 11:26:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="674457530" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 02 Sep 2022 11:26:47 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 18B3B2E7; Fri, 2 Sep 2022 21:27:00 +0300 (EEST) From: Andy Shevchenko To: Linus Walleij , Andy Shevchenko , Patrick Rudolph , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 06/17] pinctrl: cy8c95x0: Drop unneeded npins assignment Date: Fri, 2 Sep 2022 21:26:39 +0300 Message-Id: <20220902182650.83098-6-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220902182650.83098-1-andriy.shevchenko@linux.intel.com> References: <20220902182650.83098-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The npins field is assigned twice. Remove the first occurrence. Signed-off-by: Andy Shevchenko --- drivers/pinctrl/pinctrl-cy8c95x0.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-cy8c95x0.c b/drivers/pinctrl/pinctrl-cy8c95x0.c index a05fbf818bf2..eac8b073e19f 100644 --- a/drivers/pinctrl/pinctrl-cy8c95x0.c +++ b/drivers/pinctrl/pinctrl-cy8c95x0.c @@ -1187,7 +1187,6 @@ static int cy8c95x0_setup_pinctrl(struct cy8c95x0_pinctrl *chip) pd->pctlops = &cy8c95x0_pinctrl_ops; pd->confops = &cy8c95x0_pinconf_ops; pd->pmxops = &cy8c95x0_pmxops; - pd->npins = chip->gpio_chip.ngpio; pd->name = dev_name(chip->dev); pd->pins = cy8c9560_pins; pd->npins = chip->tpin;