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,