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

iio:accel:fxl8962af: Move exports into IIO_FXL8962AF namespace

To avoid unnecessary pollution of the global symbol namespace move the
driver core exports into their own namespace and import that into the two
bus modules.

For more info see https://lwn.net/Articles/760045/

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Sean Nyekjaer <sean@geanix.com>
Reviewed-by: Sean Nyekjaer <sean@geanix.com>
Link: https://lore.kernel.org/r/20220116180535.2367780-12-jic23@kernel.org

+5 -3
+3 -3
drivers/iio/accel/fxls8962af-core.c
··· 178 178 .val_bits = 8, 179 179 .max_register = FXLS8962AF_MAX_REG, 180 180 }; 181 - EXPORT_SYMBOL_GPL(fxls8962af_regmap_conf); 181 + EXPORT_SYMBOL_NS_GPL(fxls8962af_regmap_conf, IIO_FXLS8962AF); 182 182 183 183 enum { 184 184 fxls8962af_idx_x, ··· 1232 1232 1233 1233 return devm_iio_device_register(dev, indio_dev); 1234 1234 } 1235 - EXPORT_SYMBOL_GPL(fxls8962af_core_probe); 1235 + EXPORT_SYMBOL_NS_GPL(fxls8962af_core_probe, IIO_FXLS8962AF); 1236 1236 1237 1237 static int __maybe_unused fxls8962af_runtime_suspend(struct device *dev) 1238 1238 { ··· 1298 1298 SET_RUNTIME_PM_OPS(fxls8962af_runtime_suspend, 1299 1299 fxls8962af_runtime_resume, NULL) 1300 1300 }; 1301 - EXPORT_SYMBOL_GPL(fxls8962af_pm_ops); 1301 + EXPORT_SYMBOL_NS_GPL(fxls8962af_pm_ops, IIO_FXLS8962AF); 1302 1302 1303 1303 MODULE_AUTHOR("Sean Nyekjaer <sean@geanix.com>"); 1304 1304 MODULE_DESCRIPTION("NXP FXLS8962AF/FXLS8964AF accelerometer driver");
+1
drivers/iio/accel/fxls8962af-i2c.c
··· 55 55 MODULE_AUTHOR("Sean Nyekjaer <sean@geanix.com>"); 56 56 MODULE_DESCRIPTION("NXP FXLS8962AF/FXLS8964AF accelerometer i2c driver"); 57 57 MODULE_LICENSE("GPL v2"); 58 + MODULE_IMPORT_NS(IIO_FXLS8962AF);
+1
drivers/iio/accel/fxls8962af-spi.c
··· 55 55 MODULE_AUTHOR("Sean Nyekjaer <sean@geanix.com>"); 56 56 MODULE_DESCRIPTION("NXP FXLS8962AF/FXLS8964AF accelerometer spi driver"); 57 57 MODULE_LICENSE("GPL v2"); 58 + MODULE_IMPORT_NS(IIO_FXLS8962AF);