aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/iio/light/st_uvis25_i2c.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-01-30 20:57:00 +0000
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-02-18 11:42:27 +0000
commitcfaa5482b3b4e961000e13de7d572401d5d2f30d (patch)
tree8b7ba97bc4204f85928b595c0e58beff077fa4d8 /drivers/iio/light/st_uvis25_i2c.c
parentiio:magnetometer:hmc5843: Move exports to IIO_HMC5843 namespace (diff)
downloadwireguard-linux-cfaa5482b3b4e961000e13de7d572401d5d2f30d.tar.xz
wireguard-linux-cfaa5482b3b4e961000e13de7d572401d5d2f30d.zip
iio:light:st_uvis25: Move exports to IIO_UVIS25 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> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220130205701.334592-16-jic23@kernel.org
Diffstat (limited to 'drivers/iio/light/st_uvis25_i2c.c')
-rw-r--r--drivers/iio/light/st_uvis25_i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/light/st_uvis25_i2c.c b/drivers/iio/light/st_uvis25_i2c.c
index 98cd49eefe45..b06d09af28a3 100644
--- a/drivers/iio/light/st_uvis25_i2c.c
+++ b/drivers/iio/light/st_uvis25_i2c.c
@@ -66,3 +66,4 @@ module_i2c_driver(st_uvis25_driver);
MODULE_AUTHOR("Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>");
MODULE_DESCRIPTION("STMicroelectronics uvis25 i2c driver");
MODULE_LICENSE("GPL v2");
+MODULE_IMPORT_NS(IIO_UVIS25);