From patchwork Thu Jan 12 18:51:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 641750 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 48F5AC61DB3 for ; Thu, 12 Jan 2023 19:09:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232421AbjALTJR (ORCPT ); Thu, 12 Jan 2023 14:09:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232727AbjALTIs (ORCPT ); Thu, 12 Jan 2023 14:08:48 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64F216445; Thu, 12 Jan 2023 10:50:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673549454; x=1705085454; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=LawLnTNYcPdrqJ0ONp98furwA0CqtsHwm67K1q+IPrQ=; b=GveMztBdBzfqFrbe2a323gMam9hx9KDV+jeaDERjXbfNy1egswGc9kcZ NBUlLUFuLbfh6ckUUPHjKuWb3VKfiBhLfXfpqXiLlLof/1kdE7kPlSVyd 4aNnxtGpQUIGsV1ONqMNzXqRpvS0GRYYwasIkFjzObDmHJ0jgnT0i+UsR 2+HFjHe2W39OrkzbYt7i/PrvZB0HOAGkBaP25CjYkugaqtl5E2CXyfCdf oPThFCEMNlTYcdCW6JPmVAWaAB5FzUYpo9ZFjsbrg/q3E9hB+bIghlW8H kQlvAe3dVZQKsqbCCS9KY2OtHkVQptFi9yyrxt3ZFKErqdirlrBQZdM6G g==; X-IronPort-AV: E=McAfee;i="6500,9779,10588"; a="321491083" X-IronPort-AV: E=Sophos;i="5.97,211,1669104000"; d="scan'208";a="321491083" 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 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.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;