summaryrefslogtreecommitdiffstats
path: root/drivers/iio/magnetometer/rm3100-i2c.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-01-30 20:56:57 +0000
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-02-18 11:42:27 +0000
commit230ee6c69c8948e8d997a76daf7a1aa403fc6d5a (patch)
treed85f3794b7669eb7790143b16f21a4ae29625ade /drivers/iio/magnetometer/rm3100-i2c.c
parentc7c848b05fb86aeb7fc8019f72f0462a7406e7a3 (diff)
downloadlinux-230ee6c69c8948e8d997a76daf7a1aa403fc6d5a.tar.bz2
iio:magnetometer:rm3100: Move exports to IIO_RM3100 namespace
In order to avoid unnecessary pollution of the global symbol namespace move the common/library functions into a specific namespace and import that into the 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> Cc: Song Qiang <songqiang1304521@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220130205701.334592-13-jic23@kernel.org
Diffstat (limited to 'drivers/iio/magnetometer/rm3100-i2c.c')
-rw-r--r--drivers/iio/magnetometer/rm3100-i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/rm3100-i2c.c b/drivers/iio/magnetometer/rm3100-i2c.c
index 1ac622c6d6c9..ba669ab7113d 100644
--- a/drivers/iio/magnetometer/rm3100-i2c.c
+++ b/drivers/iio/magnetometer/rm3100-i2c.c
@@ -52,3 +52,4 @@ module_i2c_driver(rm3100_driver);
MODULE_AUTHOR("Song Qiang <songqiang1304521@gmail.com>");
MODULE_DESCRIPTION("PNI RM3100 3-axis magnetometer i2c driver");
MODULE_LICENSE("GPL v2");
+MODULE_IMPORT_NS(IIO_RM3100);