summaryrefslogtreecommitdiffstats
path: root/drivers/iio/pressure/mpl115_i2c.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-01-30 21:56:56 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-02-18 12:42:27 +0100
commitc7c848b05fb86aeb7fc8019f72f0462a7406e7a3 (patch)
tree4f92dfc17b42485d47c3fa87682b5a7ada4eaa8c /drivers/iio/pressure/mpl115_i2c.c
parentiio:pressure:ms5611: Move exports into IIO_MS5611 namespace (diff)
downloadlinux-c7c848b05fb86aeb7fc8019f72f0462a7406e7a3.tar.xz
linux-c7c848b05fb86aeb7fc8019f72f0462a7406e7a3.zip
iio:pressure:mpl115: Move exports into IIO_MPL115 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-12-jic23@kernel.org
Diffstat (limited to 'drivers/iio/pressure/mpl115_i2c.c')
-rw-r--r--drivers/iio/pressure/mpl115_i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/pressure/mpl115_i2c.c b/drivers/iio/pressure/mpl115_i2c.c
index ac1f12bcb65e..099ab1c6832c 100644
--- a/drivers/iio/pressure/mpl115_i2c.c
+++ b/drivers/iio/pressure/mpl115_i2c.c
@@ -62,3 +62,4 @@ module_i2c_driver(mpl115_i2c_driver);
MODULE_AUTHOR("Peter Meerwald <pmeerw@pmeerw.net>");
MODULE_DESCRIPTION("Freescale MPL115A2 pressure/temperature driver");
MODULE_LICENSE("GPL");
+MODULE_IMPORT_NS(IIO_MPL115);