summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-tangier.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-11-13 19:00:19 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-11-13 19:00:19 +0300
commitfb77e8a8591512449c6736fd718c33a8afab8b95 (patch)
treeebb9b1d1c2faaa8245698dcee879668f8e1e07b1 /drivers/gpio/gpio-tangier.c
parentb85ea95d086471afb4ad062012a4d73cd328fa86 (diff)
parentc4a79ae280a632786d6f9c7856ef27ebaa585ea7 (diff)
downloadlinux-fb77e8a8591512449c6736fd718c33a8afab8b95.tar.xz
Merge patch series "Use the standard _PM_OPS() export macro in Intel Tangier GPIO driver"
Raag Jadav <raag.jadav@intel.com> says: This series exports pm_ops structure from Intel Tangier GPIO driver using EXPORT_NS_GPL_SIMPLE_DEV_PM_OPS() helper and reuses it into its users. Link: https://lore.kernel.org/r/20231113131600.10828-1-raag.jadav@intel.com Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/gpio/gpio-tangier.c')
-rw-r--r--drivers/gpio/gpio-tangier.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-tangier.c b/drivers/gpio/gpio-tangier.c
index 7ce3eddaed25..158fa9054e9c 100644
--- a/drivers/gpio/gpio-tangier.c
+++ b/drivers/gpio/gpio-tangier.c
@@ -19,6 +19,7 @@
#include <linux/math.h>
#include <linux/module.h>
#include <linux/pinctrl/pinconf-generic.h>
+#include <linux/pm.h>
#include <linux/spinlock.h>
#include <linux/string_helpers.h>
#include <linux/types.h>
@@ -477,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;
@@ -502,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;
@@ -529,7 +529,8 @@ 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);
MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>");
MODULE_AUTHOR("Pandith N <pandith.n@intel.com>");