Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2805824rdb; Mon, 4 Dec 2023 08:02:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEW6ZfuyKpb5MEr5gth8fUUU3qn8tVau7qWVcBrur/ykr2++Dam1/C5XGLlakiwNXMn2XoQ X-Received: by 2002:a05:6830:14e:b0:6d9:aef0:4fd7 with SMTP id j14-20020a056830014e00b006d9aef04fd7mr352936otp.76.1701705779463; Mon, 04 Dec 2023 08:02:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701705779; cv=none; d=google.com; s=arc-20160816; b=AFHbsxvEVw53jjDH63TlFhkB9RkUcbNG9OYsK9jsjGqei6cl1BtS2pbbw0ExNcXw5L B8vxma0vCkY2k3C6xl5zuyZygfofmuGw5ZilsOmNgoq6gTgy/SaL+34FyA9D7sCsVp/t YemkZ5/+3GQxlypLRQuvYao4baiznVG7BTAnl5F8/XdnohDiPqn79ugkES71H00ZujXL XF/rKeCbNkktiXKN1MLblA0UwsajvE4PPY3xOHMQH7f8a4PwNZPBC7JGchjql2gipvQY SSXskp7I8oYdpNp+iqJ0qgCQUb0n6NXo+7Z+AXr/sMdFGYE42p6PrN+XjUsTQdKHYjrr Nz9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QPuhUdOjAWJEaCRyfNF1IlapG251gNSYm96EGdpOvEA=; fh=bb00IWANzUrbEims5abAG2NrFRW6cV0KBtrUyXvAr8o=; b=DbHSf6R6+KDO1TMZkSTaq7DRZpRxjnpJDZjHJ1Or5vNQKe9DaYreZEb+PCUxgx9WBi xKTwrtqBgHDOZsCfGHkCE0lbGUyjS8xUEonxtUyYa8X0Nhketh8jrNCof0+Zwupofa66 AYa2y4O3ilXa92saHWUyZFIjIlQDpNNf+NyHKcpKGIpDsnjGhdjSforUffrR5H+BXNmv HbXt9VXsUzT27Nxr7Atn9Nu+xhGv8UjvP+VAv9rqTl38fPtNYLYpu2RZuSn/TnATkJ4H 4bosP+c5Vr/xhsw+zdagaSi/up6ppkhsVsWQtLVVCWy/kGLxysP6OKt78je/pThRWB2M uyXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="i6g/bhyr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id g18-20020a9d6b12000000b006d87b4e7b82si1331853otp.114.2023.12.04.08.02.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 08:02:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="i6g/bhyr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 848B8805367E; Mon, 4 Dec 2023 08:02:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344488AbjLDQCb (ORCPT + 99 others); Mon, 4 Dec 2023 11:02:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344301AbjLDQCX (ORCPT ); Mon, 4 Dec 2023 11:02:23 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0913E83; Mon, 4 Dec 2023 08:02:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701705750; x=1733241750; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mX8nkFa+pUFM3JtjtNpLHJ2j2h/kDkAZjOuxZ+/LWq0=; b=i6g/bhyr6pd+nzjHfyVPWB8XrkdeQRJousy5sE7zljg8cznKg8y9U+qO +ge8Ax7hTVyEGSNtqRB8kyPZHZUNBGcSJ3uUiHJbKreLHYaoGk0W3d4pC DdpPMjLWixp7CX085SVwJDa69VwmAtUek5I9HXkL7Vgjk4Ifq+jW8OSGY mNqRZlqInyhBIAI1VNU7UaRLrGEluwbtTWoAsDlXWZAE8tS+O+dU4V/tf 2R6CaCEjA5FjaBmS77jJxaK9408yWhIwfBWtW1H5LUpLnb2GjByD6TWhN TR6e3cR2FfLRgL2FICpSt+0vqAgFNda/uDDCkLKvt4lJMSOvwV4EjOHXa g==; X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="807884" X-IronPort-AV: E=Sophos;i="6.04,250,1695711600"; d="scan'208";a="807884" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 08:00:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="774297203" X-IronPort-AV: E=Sophos;i="6.04,250,1695711600"; d="scan'208";a="774297203" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 04 Dec 2023 08:00:44 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 2D122A5F; Mon, 4 Dec 2023 18:00:43 +0200 (EET) From: Andy Shevchenko To: Linus Walleij , Andy Shevchenko , =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , Geert Uytterhoeven , Claudiu Beznea , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, linux-renesas-soc@vger.kernel.org Cc: Lakshmi Sowjanya D Subject: [PATCH v1 4/5] pinctrl: keembay: Convert to use struct pingroup Date: Mon, 4 Dec 2023 17:56:35 +0200 Message-ID: <20231204160033.1872569-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1.gbec44491f096 In-Reply-To: <20231204160033.1872569-1-andriy.shevchenko@linux.intel.com> References: <20231204160033.1872569-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 04 Dec 2023 08:02:56 -0800 (PST) The pin control header provides struct pingroup. Utilize it instead of open coded variants in the driver. Signed-off-by: Andy Shevchenko --- drivers/pinctrl/pinctrl-keembay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-keembay.c b/drivers/pinctrl/pinctrl-keembay.c index 152c35bce8ec..87d328853ae4 100644 --- a/drivers/pinctrl/pinctrl-keembay.c +++ b/drivers/pinctrl/pinctrl-keembay.c @@ -1517,7 +1517,7 @@ static int keembay_gpiochip_probe(struct keembay_pinctrl *kpc, static int keembay_build_groups(struct keembay_pinctrl *kpc) { - struct group_desc *grp; + struct pingroup *grp; unsigned int i; kpc->ngroups = kpc->npins; @@ -1528,7 +1528,7 @@ static int keembay_build_groups(struct keembay_pinctrl *kpc) /* Each pin is categorised as one group */ for (i = 0; i < kpc->ngroups; i++) { const struct pinctrl_pin_desc *pdesc = keembay_pins + i; - struct group_desc *kmb_grp = grp + i; + struct pingroup *kmb_grp = grp + i; kmb_grp->name = pdesc->name; kmb_grp->pins = (int *)&pdesc->number; -- 2.43.0.rc1.1.gbec44491f096