diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-01-30 23:56:58 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-02-18 14:42:27 +0300 |
commit | 47d6cae0d0ea7477b5ea5f43a5b9be759052566b (patch) | |
tree | c547f7ced4b6bd2227fe0f61108ca141c405ce29 /drivers/iio/magnetometer/bmc150_magn_i2c.c | |
parent | 230ee6c69c8948e8d997a76daf7a1aa403fc6d5a (diff) | |
download | linux-47d6cae0d0ea7477b5ea5f43a5b9be759052566b.tar.xz |
iio:magnetometer:bmc150: Move exports to IIO_BMC150_MAGN 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.
Note the MAGN postfix here is reflecting that this driver is only
responsible for part of the BMC150 device.
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-14-jic23@kernel.org
Diffstat (limited to 'drivers/iio/magnetometer/bmc150_magn_i2c.c')
-rw-r--r-- | drivers/iio/magnetometer/bmc150_magn_i2c.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/bmc150_magn_i2c.c b/drivers/iio/magnetometer/bmc150_magn_i2c.c index 876e96005e33..e39b89661ad1 100644 --- a/drivers/iio/magnetometer/bmc150_magn_i2c.c +++ b/drivers/iio/magnetometer/bmc150_magn_i2c.c @@ -80,3 +80,4 @@ module_i2c_driver(bmc150_magn_driver); MODULE_AUTHOR("Daniel Baluta <daniel.baluta@intel.com"); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("BMC150 I2C magnetometer driver"); +MODULE_IMPORT_NS(IIO_BMC150_MAGN); |