Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: tangier: unexport suspend/resume handles

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 <raag.jadav@intel.com>
Link: https://lore.kernel.org/r/20231113131600.10828-4-raag.jadav@intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

authored by

Raag Jadav and committed by
Andy Shevchenko
c4a79ae2 49d478b4

+2 -7
+2 -4
drivers/gpio/gpio-tangier.c
··· 478 478 } 479 479 EXPORT_SYMBOL_NS_GPL(devm_tng_gpio_probe, GPIO_TANGIER); 480 480 481 - int tng_gpio_suspend(struct device *dev) 481 + static int tng_gpio_suspend(struct device *dev) 482 482 { 483 483 struct tng_gpio *priv = dev_get_drvdata(dev); 484 484 struct tng_gpio_context *ctx = priv->ctx; ··· 503 503 504 504 return 0; 505 505 } 506 - EXPORT_SYMBOL_NS_GPL(tng_gpio_suspend, GPIO_TANGIER); 507 506 508 - int tng_gpio_resume(struct device *dev) 507 + static int tng_gpio_resume(struct device *dev) 509 508 { 510 509 struct tng_gpio *priv = dev_get_drvdata(dev); 511 510 struct tng_gpio_context *ctx = priv->ctx; ··· 529 530 530 531 return 0; 531 532 } 532 - EXPORT_SYMBOL_NS_GPL(tng_gpio_resume, GPIO_TANGIER); 533 533 534 534 EXPORT_NS_GPL_SIMPLE_DEV_PM_OPS(tng_gpio_pm_ops, tng_gpio_suspend, tng_gpio_resume, GPIO_TANGIER); 535 535
-3
drivers/gpio/gpio-tangier.h
··· 112 112 113 113 int devm_tng_gpio_probe(struct device *dev, struct tng_gpio *gpio); 114 114 115 - int tng_gpio_suspend(struct device *dev); 116 - int tng_gpio_resume(struct device *dev); 117 - 118 115 extern const struct dev_pm_ops tng_gpio_pm_ops; 119 116 120 117 #endif /* _GPIO_TANGIER_H_ */