diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-04-01 17:06:05 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-04-05 21:16:34 +0300 |
commit | bd8284e968ecfc7777703cd76eabbbbf9f3ac9ff (patch) | |
tree | ccd04139dd6a3d9991d029f593d7ad0078d3e1e2 /drivers/iio/chemical/scd30_i2c.c | |
parent | a8e2512efc65892a1cbf608d9c03c8bcbe5a623a (diff) | |
download | linux-bd8284e968ecfc7777703cd76eabbbbf9f3ac9ff.tar.xz |
iio: chemical: scd30: Move symbol exports into IIO_SCD30 namespace
Avoid unnecessary pollution of the global symbol namespace by
moving library functions in to a specific namespace and import
that into the drivers that make use of the functions.
For more info: https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Tomasz Duszynski <tomasz.duszynski@octakon.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/iio/chemical/scd30_i2c.c')
-rw-r--r-- | drivers/iio/chemical/scd30_i2c.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/chemical/scd30_i2c.c b/drivers/iio/chemical/scd30_i2c.c index 7c332e4e8e46..bae479a4721f 100644 --- a/drivers/iio/chemical/scd30_i2c.c +++ b/drivers/iio/chemical/scd30_i2c.c @@ -137,3 +137,4 @@ module_i2c_driver(scd30_i2c_driver); MODULE_AUTHOR("Tomasz Duszynski <tomasz.duszynski@octakon.com>"); MODULE_DESCRIPTION("Sensirion SCD30 carbon dioxide sensor i2c driver"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(IIO_SCD30); |