From: Greg Kroah-Hartman Date: Fri, 26 Jan 2024 21:52:11 +0000 (-0800) Subject: 5.10-stable patches X-Git-Tag: v6.1.76~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e36ca320a8876c2438d6688a64b8db073e65e325;p=thirdparty%2Fkernel%2Fstable-queue.git 5.10-stable patches added patches: iio-adc-ad7091r-move-exports-into-iio_ad7091r-namespace.patch --- diff --git a/queue-5.10/iio-adc-ad7091r-move-exports-into-iio_ad7091r-namespace.patch b/queue-5.10/iio-adc-ad7091r-move-exports-into-iio_ad7091r-namespace.patch new file mode 100644 index 00000000000..5937c85cdf5 --- /dev/null +++ b/queue-5.10/iio-adc-ad7091r-move-exports-into-iio_ad7091r-namespace.patch @@ -0,0 +1,57 @@ +From 8a0080af84d3fb2423f0b3b55eff666f545eb097 Mon Sep 17 00:00:00 2001 +From: Jonathan Cameron +Date: Sun, 30 Jan 2022 20:56:47 +0000 +Subject: iio:adc:ad7091r: Move exports into IIO_AD7091R namespace. + +From: Jonathan Cameron + +commit 8a0080af84d3fb2423f0b3b55eff666f545eb097 upstream. + +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 specific device drivers that use them. + +For more information see https://lwn.net/Articles/760045/ + +An alternative here would be to conclude that we are unlikely to see +support for the other ad7091r parts in the near future and just merge +the two modules into one supporting just the i2c -5 variant. + +Signed-off-by: Jonathan Cameron +Cc: Paul Cercueil +Reviewed-by: Paul Cercueil +Reviewed-by: Andy Shevchenko +Link: https://lore.kernel.org/r/20220130205701.334592-3-jic23@kernel.org +Signed-off-by: Greg Kroah-Hartman +--- + drivers/iio/adc/ad7091r-base.c | 4 ++-- + drivers/iio/adc/ad7091r5.c | 1 + + 2 files changed, 3 insertions(+), 2 deletions(-) + +--- a/drivers/iio/adc/ad7091r-base.c ++++ b/drivers/iio/adc/ad7091r-base.c +@@ -429,7 +429,7 @@ int ad7091r_probe(struct device *dev, co + + return devm_iio_device_register(dev, iio_dev); + } +-EXPORT_SYMBOL_GPL(ad7091r_probe); ++EXPORT_SYMBOL_NS_GPL(ad7091r_probe, IIO_AD7091R); + + static bool ad7091r_writeable_reg(struct device *dev, unsigned int reg) + { +@@ -459,7 +459,7 @@ const struct regmap_config ad7091r_regma + .writeable_reg = ad7091r_writeable_reg, + .volatile_reg = ad7091r_volatile_reg, + }; +-EXPORT_SYMBOL_GPL(ad7091r_regmap_config); ++EXPORT_SYMBOL_NS_GPL(ad7091r_regmap_config, IIO_AD7091R); + + MODULE_AUTHOR("Beniamin Bia "); + MODULE_DESCRIPTION("Analog Devices AD7091Rx multi-channel converters"); +--- a/drivers/iio/adc/ad7091r5.c ++++ b/drivers/iio/adc/ad7091r5.c +@@ -91,3 +91,4 @@ module_i2c_driver(ad7091r5_driver); + MODULE_AUTHOR("Beniamin Bia "); + MODULE_DESCRIPTION("Analog Devices AD7091R5 multi-channel ADC driver"); + MODULE_LICENSE("GPL v2"); ++MODULE_IMPORT_NS(IIO_AD7091R); diff --git a/queue-5.10/series b/queue-5.10/series index 4d55e3b2953..1dbdcbea935 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -13,3 +13,4 @@ iio-adc-ad7091r-set-alert-bit-in-config-register.patch iio-adc-ad7091r-allow-users-to-configure-device-even.patch iio-adc-ad7091r-enable-internal-vref-if-external-vre.patch dmaengine-fix-null-pointer-in-channel-unregistration.patch +iio-adc-ad7091r-move-exports-into-iio_ad7091r-namespace.patch