diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-01-30 21:56:55 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-02-18 12:42:26 +0100 |
commit | 1980d4a1bae068935da597abaacdfb26c4132e88 (patch) | |
tree | 8be19e29d4378dccfeb32ae5b774d234a89d7ac7 /drivers/iio/pressure/ms5611_i2c.c | |
parent | iio:pressure:zpa2326: Move exports into IIO_ZPA2326 namespace (diff) | |
download | linux-1980d4a1bae068935da597abaacdfb26c4132e88.tar.xz linux-1980d4a1bae068935da597abaacdfb26c4132e88.zip |
iio:pressure:ms5611: Move exports into IIO_MS5611 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: Tomasz Duszynski <tduszyns@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220130205701.334592-11-jic23@kernel.org
Diffstat (limited to 'drivers/iio/pressure/ms5611_i2c.c')
-rw-r--r-- | drivers/iio/pressure/ms5611_i2c.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/pressure/ms5611_i2c.c b/drivers/iio/pressure/ms5611_i2c.c index 1047a85527a9..3b1de71e0d15 100644 --- a/drivers/iio/pressure/ms5611_i2c.c +++ b/drivers/iio/pressure/ms5611_i2c.c @@ -140,3 +140,4 @@ module_i2c_driver(ms5611_driver); MODULE_AUTHOR("Tomasz Duszynski <tduszyns@gmail.com>"); MODULE_DESCRIPTION("MS5611 i2c driver"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(IIO_MS5611); |