summaryrefslogtreecommitdiff
path: root/drivers/iio/chemical/bme680_i2c.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-01-30 23:57:01 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-02-18 14:42:27 +0300
commit146b43d9f1a1bbce43ad8aef2a21f080b59ea006 (patch)
tree956d1203cac83dcdc49f0c9cc37d466158c1a721 /drivers/iio/chemical/bme680_i2c.c
parentcfaa5482b3b4e961000e13de7d572401d5d2f30d (diff)
downloadlinux-146b43d9f1a1bbce43ad8aef2a21f080b59ea006.tar.xz
iio:chemical:bme680: Move exports to IIO_BME680 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: Himanshu Jha <himanshujha199640@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220130205701.334592-17-jic23@kernel.org
Diffstat (limited to 'drivers/iio/chemical/bme680_i2c.c')
-rw-r--r--drivers/iio/chemical/bme680_i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/chemical/bme680_i2c.c b/drivers/iio/chemical/bme680_i2c.c
index 74cf89c82c0a..20f2c20b6b02 100644
--- a/drivers/iio/chemical/bme680_i2c.c
+++ b/drivers/iio/chemical/bme680_i2c.c
@@ -60,3 +60,4 @@ module_i2c_driver(bme680_i2c_driver);
MODULE_AUTHOR("Himanshu Jha <himanshujha199640@gmail.com>");
MODULE_DESCRIPTION("BME680 I2C driver");
MODULE_LICENSE("GPL v2");
+MODULE_IMPORT_NS(IIO_BME680);