From patchwork Mon Nov 13 13:15:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raag Jadav X-Patchwork-Id: 164482 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1193425vqg; Mon, 13 Nov 2023 05:16:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFvofQzOsRiZADHmNzcPW+g+ipeA+2pm9bL31ODDYyLWiOc8nWl9Aw18EdGAcAhfoAqBbmq X-Received: by 2002:a17:90b:33c6:b0:27c:ef18:d270 with SMTP id lk6-20020a17090b33c600b0027cef18d270mr3819420pjb.20.1699881413053; Mon, 13 Nov 2023 05:16:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699881413; cv=none; d=google.com; s=arc-20160816; b=yYKPY4I6kwS69u6buC7SSVIcpAggTwbg/dZw20J5lggA3IP+0KQopI9BDB6Bv5fqnM mWKFT/oGZC71moVCPpqGjfGy/9yF9fwnNzRFyrSZllEaKhnTo2QyO3Ka2cu2HlwO5NbQ jPNfPNkdblGbzUYn8eH6ENAdHy9Hajc6Bk3KEMRjyQvcBEC+v9sDNsYY9LaFeIwWKztm MZ38KraDL9Q2oYkNBQjq8Mgd+3viFm2FOxf34N3Pju498mtiwJ7AYfH9IE/isk8tCZu1 Bg0FzFl7KZhExtzdXYtjRRFX1iWY3BPlmdgZ/UMHIjkD1FTU2cVAHOTHSHWneXFY8DCn WOng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=XL6bgsS5BLdI/6iu1GV9d+/AIDuQJscSL3n4pWgWs0I=; fh=AaRHxHroqci6mwsR+355j0Rj4N3vJlegY3E0t/DDErE=; b=nhtJ0yMLjFCS1G/ojdWer24ltw9MP4OmTxTdwgSq2UMu4c2rGmtnRNaA8ZgpZSU4BD ufvSw2t4CQS4+SAA6Dm+rCMEzv75ae6XQR+I1Nmeu4Q0kbtJuaqwlhA3BnCjSOCYh61X 997cFTVUwq70Eow02XSJttlQyMb70dnxuYZBd2p9Hft7g2syq0RjLC5bSinI0dG5ez64 K+xnUB5zniee+lRMuMK07MWmuE/uGM69/h1ZqEonEJS1bXqg5oPHvekxkRQp93alekC+ IN2a4VAUpfyA5TuJO2dqUIEh//CQx0vd447WTzwpwHehQpi1C0ueeI4abdMdNOZtbmNm MEcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UbnIhs5e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id lp9-20020a17090b4a8900b0027995cf4342si6056360pjb.55.2023.11.13.05.16.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 05:16:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UbnIhs5e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 342B1805FD54; Mon, 13 Nov 2023 05:16:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230396AbjKMNQV (ORCPT + 29 others); Mon, 13 Nov 2023 08:16:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230322AbjKMNQR (ORCPT ); Mon, 13 Nov 2023 08:16:17 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0C9DD6C; Mon, 13 Nov 2023 05:16:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699881374; x=1731417374; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=0W1lXUBGP+iBxAlWICinNyER0ndu/deNSI5T1s1ZuWI=; b=UbnIhs5elNDtBzhF84Cix8lCguYE7k+jHZkAjJ3bGViK6+q6FM1tEFYp Ifo2zUTTUDfXLECXZVfF1R3LGs/bs4iIqUKUuNq01wf1WCV99qJ5MXrBb StF3TlsDv9Z5zSlhn9WF0JR6iqoiTO4IMDC6lxJCyKkLTNNFc6B2e+fHG 4lXFhv56HFHqR7bkqN04Qgw9jo2mwAMRsoK5NHaGpM5Vw4N8tjlamy6bV XzXTgYvKLE17wb4aexiyHwJFeINk5aDvljQ1XFNsswVGJNq3THOM0Pc4z 89vUdRkUnB+zlkD6YBepCC+9y8vNVvNL8zV/UdtOznn6459PZOtconI/f A==; X-IronPort-AV: E=McAfee;i="6600,9927,10893"; a="454726902" X-IronPort-AV: E=Sophos;i="6.03,299,1694761200"; d="scan'208";a="454726902" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2023 05:16:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,299,1694761200"; d="scan'208";a="5649391" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa002.fm.intel.com with ESMTP; 13 Nov 2023 05:16:12 -0800 From: Raag Jadav To: linus.walleij@linaro.org, brgl@bgdev.pl, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, mallikarjunappa.sangannavar@intel.com, bala.senthil@intel.com, Raag Jadav Subject: [PATCH v1 1/3] gpio: tangier: use EXPORT_NS_GPL_SIMPLE_DEV_PM_OPS() helper Date: Mon, 13 Nov 2023 18:45:58 +0530 Message-Id: <20231113131600.10828-2-raag.jadav@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231113131600.10828-1-raag.jadav@intel.com> References: <20231113131600.10828-1-raag.jadav@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 13 Nov 2023 05:16:50 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782454852577371839 X-GMAIL-MSGID: 1782454852577371839 Use EXPORT_NS_GPL_SIMPLE_DEV_PM_OPS() helper to export pm_ops to GPIO_TANGIER namespace, so that they can be reused. Signed-off-by: Raag Jadav --- drivers/gpio/gpio-tangier.c | 3 +++ drivers/gpio/gpio-tangier.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/gpio/gpio-tangier.c b/drivers/gpio/gpio-tangier.c index 7ce3eddaed25..52d0868476e1 100644 --- a/drivers/gpio/gpio-tangier.c +++ b/drivers/gpio/gpio-tangier.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -531,6 +532,8 @@ int tng_gpio_resume(struct device *dev) } EXPORT_SYMBOL_NS_GPL(tng_gpio_resume, GPIO_TANGIER); +EXPORT_NS_GPL_SIMPLE_DEV_PM_OPS(tng_gpio_pm_ops, tng_gpio_suspend, tng_gpio_resume, GPIO_TANGIER); + MODULE_AUTHOR("Andy Shevchenko "); MODULE_AUTHOR("Pandith N "); MODULE_AUTHOR("Raag Jadav "); diff --git a/drivers/gpio/gpio-tangier.h b/drivers/gpio/gpio-tangier.h index 16c4f22908fb..333e5f79b908 100644 --- a/drivers/gpio/gpio-tangier.h +++ b/drivers/gpio/gpio-tangier.h @@ -13,6 +13,7 @@ #define _GPIO_TANGIER_H_ #include +#include #include #include @@ -114,4 +115,6 @@ int devm_tng_gpio_probe(struct device *dev, struct tng_gpio *gpio); int tng_gpio_suspend(struct device *dev); int tng_gpio_resume(struct device *dev); +extern const struct dev_pm_ops tng_gpio_pm_ops; + #endif /* _GPIO_TANGIER_H_ */ From patchwork Mon Nov 13 13:15:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raag Jadav X-Patchwork-Id: 164480 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1193368vqg; Mon, 13 Nov 2023 05:16:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEUY8NRCCdDkNiLnX3YeTqE2OxVD+7aDqAjaiHDX+wItqKzb3/ncLDuNL0NdGOhN+3bfk1q X-Received: by 2002:a05:6e02:1a62:b0:359:cc15:b0b1 with SMTP id w2-20020a056e021a6200b00359cc15b0b1mr8505119ilv.14.1699881408128; Mon, 13 Nov 2023 05:16:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699881408; cv=none; d=google.com; s=arc-20160816; b=U0m1dzZchMfkw1jicW6q8DEFE85qEJJbT5RqqCJOd+XsbfUdkd6Q3qXm/uJdVlmmkh Ru5zzSaYklO5Z2/3FbnpW9lPSP64TrtF1v/DQhWVx7bqyUFg3UgJf8jXWvkp0mdgGfnX aogD89QQ2lAFg+QVzrQeV2Um2bf4ICLjMarnAt0+pu9696fsRAWcIfsgMCIdvsT5lzCR ZV9dS+roZ7MwhB/HKh4sEv94gejLVv9iqB04KRFKDJ6nT6GhTcQnAYqLQkCPDYrcpW/+ 2nVW91yyoBr1RxOOap8EXiAlxv7pP2duZhwQGOjpvwf5Q7teg++E8hGwakMaM3mdogrM mU4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=nxG3I268u7THalp7mp8F78T6/RHAnCeAs3ipbHKaZKA=; fh=AaRHxHroqci6mwsR+355j0Rj4N3vJlegY3E0t/DDErE=; b=ECbpORBI1RHycIW0Z9utSsOUjEVPnOmSgZBZr4H3WwkO+Cw9WXgASFI7qxGINedTpY r7gJW3A6/ArJWAUdUtCWmbGPJH7M2Yu1FhhXs6FVOFSGA6QPd6TPIp/bOXMlzG7jPdw3 ZMeTPsgp4GcfXwxY5A9E0Ey5d+8s1jxkDMVAx3fMlzYPQNIUaomIDfGz7VBHHRm0cnSr HZoqLXhAJfe+hruyqdRdnHPGoCMZQpA9VYUJFOw7u9S3IaZl8ei3uu4lCldkE0uJQyxa ePBAx/WZvVIqoHm9I1sdZU8q5Yu10iwll3MDEUhfx0V8suyvzPeTuFjUS5r7CX1diqgk +4TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MHj9hizD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t1-20020a63b241000000b005bd5a50b55bsi5848725pgo.695.2023.11.13.05.16.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 05:16:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MHj9hizD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 3AB87802FD32; Mon, 13 Nov 2023 05:16:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230322AbjKMNQY (ORCPT + 29 others); Mon, 13 Nov 2023 08:16:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbjKMNQU (ORCPT ); Mon, 13 Nov 2023 08:16:20 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD5FF1724; Mon, 13 Nov 2023 05:16:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699881377; x=1731417377; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=cVMB2JEbcvllLrApb7yUV501OiVQ89spuRHP1dIfQB0=; b=MHj9hizDydxhMqNLgi0oM0+3rCZP+2ddYOI83bNt52QA3M9PK+1IcC38 2QOdpTIb+l7lPIPrJGNdtWz+QlzKrMy8yF6O7LBXd2kioUu3SvRwR6PlU 1muyvej7YuVkmsSOaxH+SiekOPMP8sOaHV8T3jAAlP8sjcjcATLOqnc3b TM7AFSoGm/rMKIUeaFojxQqPhlglTqq2tA43RXCDO182VqOWq5mB9/JoX qJcjY3WxcNrvbpcHFeAl4nSX9lVmsaTD/3yqyeqpDOOoYdm2zGlPar2R8 6Xng2+wDNxKO9Zx+T8jUkRP4QJcj2W97hTsVpu5bC2t1KBX4uuU7OEBXh w==; X-IronPort-AV: E=McAfee;i="6600,9927,10893"; a="454726910" X-IronPort-AV: E=Sophos;i="6.03,299,1694761200"; d="scan'208";a="454726910" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2023 05:16:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,299,1694761200"; d="scan'208";a="5649403" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa002.fm.intel.com with ESMTP; 13 Nov 2023 05:16:14 -0800 From: Raag Jadav To: linus.walleij@linaro.org, brgl@bgdev.pl, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, mallikarjunappa.sangannavar@intel.com, bala.senthil@intel.com, Raag Jadav Subject: [PATCH v1 2/3] gpio: elkhartlake: reuse pm_ops from Intel Tangier driver Date: Mon, 13 Nov 2023 18:45:59 +0530 Message-Id: <20231113131600.10828-3-raag.jadav@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231113131600.10828-1-raag.jadav@intel.com> References: <20231113131600.10828-1-raag.jadav@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 13 Nov 2023 05:16:27 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782454847288451154 X-GMAIL-MSGID: 1782454847288451154 Reuse tng_gpio_pm_ops from Intel Tangier driver instead of calling them through a local copy. Signed-off-by: Raag Jadav --- drivers/gpio/gpio-elkhartlake.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/gpio/gpio-elkhartlake.c b/drivers/gpio/gpio-elkhartlake.c index a9c8b16215be..887c0fe99d39 100644 --- a/drivers/gpio/gpio-elkhartlake.c +++ b/drivers/gpio/gpio-elkhartlake.c @@ -55,18 +55,6 @@ static int ehl_gpio_probe(struct platform_device *pdev) return 0; } -static int ehl_gpio_suspend(struct device *dev) -{ - return tng_gpio_suspend(dev); -} - -static int ehl_gpio_resume(struct device *dev) -{ - return tng_gpio_resume(dev); -} - -static DEFINE_SIMPLE_DEV_PM_OPS(ehl_gpio_pm_ops, ehl_gpio_suspend, ehl_gpio_resume); - static const struct platform_device_id ehl_gpio_ids[] = { { "gpio-elkhartlake" }, { } @@ -76,7 +64,7 @@ MODULE_DEVICE_TABLE(platform, ehl_gpio_ids); static struct platform_driver ehl_gpio_driver = { .driver = { .name = "gpio-elkhartlake", - .pm = pm_sleep_ptr(&ehl_gpio_pm_ops), + .pm = pm_sleep_ptr(&tng_gpio_pm_ops), }, .probe = ehl_gpio_probe, .id_table = ehl_gpio_ids, From patchwork Mon Nov 13 13:16:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raag Jadav X-Patchwork-Id: 164481 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1193370vqg; Mon, 13 Nov 2023 05:16:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHu2mhF4QS9mX+8u0s7mmBAceShU97wnaNgSH+zIJ9UFfug9R5BTPAKNPjSGf19oS2L+RIZ X-Received: by 2002:a17:902:e995:b0:1cc:68a5:f388 with SMTP id f21-20020a170902e99500b001cc68a5f388mr7307819plb.33.1699881408168; Mon, 13 Nov 2023 05:16:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699881408; cv=none; d=google.com; s=arc-20160816; b=ASRHD6bL3iwt2cUz46ta2KibkrsvfDBjBU/IUSNcST/a1wJA5pcFm4FMeZAf+lJL+z suo3CzaoIxXluHhh3vYl+Gyq998y8X2N6PyUxL2zWYy2SNmVICBXoNUga29hysSE6CVW LfDR247JlIvW0DuicYh+UmPSyUf49o4348MYWM9OZzPokxqjgUVNKvyqltNLU+xX0JFK ZGiKlz3yofOmUgwlOR/HNx/n9CVV+i716TXKRtqoArqlSwi1m1HNjpD9448di3u0Rw4n nM97qb7MLMoAaE/IkycDJltSOLT13F4gwfOt+j18PT4MjONWs5mqHrWFkM6XL3GQoz1E zBXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=Xj22K5mjrhyrw5sbhoqBAoR9kyv6WvLlZUsBJ6bqoLY=; fh=AaRHxHroqci6mwsR+355j0Rj4N3vJlegY3E0t/DDErE=; b=TG+UehNofdbxbdgUkxhln6T44xnUyoPwVXIv5/+YAqpHeapc+Bog57Y+TU0xCyJV3t K5xV5RdsjsJAwkMJWASx5IM6b3MwbTZTCsAj6MzTsTAYb2K6nsImj2LjxJ0TqYx+UB+2 5KWuX7S4qwVTbUbVkeqKHF6tqihwGi5L/MrbofwAB90a0qN9GsVsuKAWJycE7plFYM/H MRZcups137bUI+nqxIQEbYHCHYht9fGmmpFI+v422NFWS20gzoU/SVOMpfqw5ELyMYyb h8NyEo7/WIG8u1LG1WPJcbSVjxcplwIQm/mMuAkkxTohFS3i5P6SHpkXT53wCjf1MpR8 +HdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PVXHOBgb; 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id n1-20020a170902e54100b001c6069b659csi5987603plf.384.2023.11.13.05.16.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 05:16:48 -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=PVXHOBgb; 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 24AB88050909; Mon, 13 Nov 2023 05:16:46 -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 S230434AbjKMNQ1 (ORCPT + 29 others); Mon, 13 Nov 2023 08:16:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230394AbjKMNQX (ORCPT ); Mon, 13 Nov 2023 08:16:23 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A332A171A; Mon, 13 Nov 2023 05:16:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699881380; x=1731417380; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=aKYkLQ60x1KnWYEBMDdCZzSTS/+78cy9Ut9qwrapwDw=; b=PVXHOBgb+6b5NIfC0hFmx0NrJPbsD7oIDXBglqvYtssatpDnnDBTTpQl AFtIRxdWBe6HYsDWmd6kmIuqusvRS6JzXlrGH6J8+JbYPuCiRo6aEI9lD IwM+QtEnzIOaoJm365i4FSEDsvvLAaEzn1TUaSQSvv+k24/luwZQHwQX0 SbrwogojwWwC4MkfJrjHnVWAqs4T19LWScdBF0BMP421o0BZaJMLkdOnn WaomKQbwRDsUOP3L4VIAcgS9/oBVQK3OBPSBJ4S9fkuo2UFQAkwM5Tddr 2htrlyKd/pVm/ByPf0gd3xzmy/Xo2JHj1h2yUVPuTcdxRfYLD5v45fl9T g==; X-IronPort-AV: E=McAfee;i="6600,9927,10893"; a="454726918" X-IronPort-AV: E=Sophos;i="6.03,299,1694761200"; d="scan'208";a="454726918" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2023 05:16:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,299,1694761200"; d="scan'208";a="5649419" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa002.fm.intel.com with ESMTP; 13 Nov 2023 05:16:17 -0800 From: Raag Jadav To: linus.walleij@linaro.org, brgl@bgdev.pl, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, mallikarjunappa.sangannavar@intel.com, bala.senthil@intel.com, Raag Jadav Subject: [PATCH v1 3/3] gpio: tangier: unexport suspend/resume handles Date: Mon, 13 Nov 2023 18:46:00 +0530 Message-Id: <20231113131600.10828-4-raag.jadav@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231113131600.10828-1-raag.jadav@intel.com> References: <20231113131600.10828-1-raag.jadav@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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, 13 Nov 2023 05:16:46 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782454847492571897 X-GMAIL-MSGID: 1782454847492571897 Unexport suspend/resume handles for the lack of external users and while at it, make them static, so that they can be discarded by the compiler if not used (CONFIG_PM_SLEEP=n). Signed-off-by: Raag Jadav --- drivers/gpio/gpio-tangier.c | 6 ++---- drivers/gpio/gpio-tangier.h | 3 --- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-tangier.c b/drivers/gpio/gpio-tangier.c index 52d0868476e1..158fa9054e9c 100644 --- a/drivers/gpio/gpio-tangier.c +++ b/drivers/gpio/gpio-tangier.c @@ -478,7 +478,7 @@ int devm_tng_gpio_probe(struct device *dev, struct tng_gpio *gpio) } EXPORT_SYMBOL_NS_GPL(devm_tng_gpio_probe, GPIO_TANGIER); -int tng_gpio_suspend(struct device *dev) +static int tng_gpio_suspend(struct device *dev) { struct tng_gpio *priv = dev_get_drvdata(dev); struct tng_gpio_context *ctx = priv->ctx; @@ -503,9 +503,8 @@ int tng_gpio_suspend(struct device *dev) return 0; } -EXPORT_SYMBOL_NS_GPL(tng_gpio_suspend, GPIO_TANGIER); -int tng_gpio_resume(struct device *dev) +static int tng_gpio_resume(struct device *dev) { struct tng_gpio *priv = dev_get_drvdata(dev); struct tng_gpio_context *ctx = priv->ctx; @@ -530,7 +529,6 @@ int tng_gpio_resume(struct device *dev) return 0; } -EXPORT_SYMBOL_NS_GPL(tng_gpio_resume, GPIO_TANGIER); EXPORT_NS_GPL_SIMPLE_DEV_PM_OPS(tng_gpio_pm_ops, tng_gpio_suspend, tng_gpio_resume, GPIO_TANGIER); diff --git a/drivers/gpio/gpio-tangier.h b/drivers/gpio/gpio-tangier.h index 333e5f79b908..ca7ab6cf6fa5 100644 --- a/drivers/gpio/gpio-tangier.h +++ b/drivers/gpio/gpio-tangier.h @@ -112,9 +112,6 @@ struct tng_gpio { int devm_tng_gpio_probe(struct device *dev, struct tng_gpio *gpio); -int tng_gpio_suspend(struct device *dev); -int tng_gpio_resume(struct device *dev); - extern const struct dev_pm_ops tng_gpio_pm_ops; #endif /* _GPIO_TANGIER_H_ */