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

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

+4 -2
+2 -2
drivers/iio/adc/ad7606.c
··· 693 693 694 694 return devm_iio_device_register(dev, indio_dev); 695 695 } 696 - EXPORT_SYMBOL_GPL(ad7606_probe); 696 + EXPORT_SYMBOL_NS_GPL(ad7606_probe, IIO_AD7606); 697 697 698 698 #ifdef CONFIG_PM_SLEEP 699 699 ··· 725 725 } 726 726 727 727 SIMPLE_DEV_PM_OPS(ad7606_pm_ops, ad7606_suspend, ad7606_resume); 728 - EXPORT_SYMBOL_GPL(ad7606_pm_ops); 728 + EXPORT_SYMBOL_NS_GPL(ad7606_pm_ops, IIO_AD7606); 729 729 730 730 #endif 731 731
+1
drivers/iio/adc/ad7606_par.c
··· 101 101 MODULE_AUTHOR("Michael Hennerich <michael.hennerich@analog.com>"); 102 102 MODULE_DESCRIPTION("Analog Devices AD7606 ADC"); 103 103 MODULE_LICENSE("GPL v2"); 104 + MODULE_IMPORT_NS(IIO_AD7606);
+1
drivers/iio/adc/ad7606_spi.c
··· 362 362 MODULE_AUTHOR("Michael Hennerich <michael.hennerich@analog.com>"); 363 363 MODULE_DESCRIPTION("Analog Devices AD7606 ADC"); 364 364 MODULE_LICENSE("GPL v2"); 365 + MODULE_IMPORT_NS(IIO_AD7606);