iio:adc:ad76060: Move exports into IIO_AD7606 namespace.
In order to avoid unnecessary pollution of the global symbol namespace move the core/library functions into a specific namespace and import that into the various bus specific device drivers that use them. For more information see https://lwn.net/Articles/760045/ Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220130205701.334592-4-jic23@kernel.org
This commit is contained in:
parent
8a0080af84
commit
59cea5bc7c
|
@ -693,7 +693,7 @@ int ad7606_probe(struct device *dev, int irq, void __iomem *base_address,
|
|||
|
||||
return devm_iio_device_register(dev, indio_dev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ad7606_probe);
|
||||
EXPORT_SYMBOL_NS_GPL(ad7606_probe, IIO_AD7606);
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
|
||||
|
@ -725,7 +725,7 @@ static int ad7606_resume(struct device *dev)
|
|||
}
|
||||
|
||||
SIMPLE_DEV_PM_OPS(ad7606_pm_ops, ad7606_suspend, ad7606_resume);
|
||||
EXPORT_SYMBOL_GPL(ad7606_pm_ops);
|
||||
EXPORT_SYMBOL_NS_GPL(ad7606_pm_ops, IIO_AD7606);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -101,3 +101,4 @@ module_platform_driver(ad7606_driver);
|
|||
MODULE_AUTHOR("Michael Hennerich <michael.hennerich@analog.com>");
|
||||
MODULE_DESCRIPTION("Analog Devices AD7606 ADC");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_IMPORT_NS(IIO_AD7606);
|
||||
|
|
|
@ -362,3 +362,4 @@ module_spi_driver(ad7606_driver);
|
|||
MODULE_AUTHOR("Michael Hennerich <michael.hennerich@analog.com>");
|
||||
MODULE_DESCRIPTION("Analog Devices AD7606 ADC");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_IMPORT_NS(IIO_AD7606);
|
||||
|
|
Loading…
Reference in New Issue