summaryrefslogtreecommitdiff
path: root/drivers/iio/magnetometer/bmc150_magn_spi.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-01-30 20:56:58 +0000
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-02-18 11:42:27 +0000
commit47d6cae0d0ea7477b5ea5f43a5b9be759052566b (patch)
treec547f7ced4b6bd2227fe0f61108ca141c405ce29 /drivers/iio/magnetometer/bmc150_magn_spi.c
parent230ee6c69c8948e8d997a76daf7a1aa403fc6d5a (diff)
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_spi.c')
-rw-r--r--drivers/iio/magnetometer/bmc150_magn_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/bmc150_magn_spi.c b/drivers/iio/magnetometer/bmc150_magn_spi.c
index c6ed3ea8460a..0db363ffc462 100644
--- a/drivers/iio/magnetometer/bmc150_magn_spi.c
+++ b/drivers/iio/magnetometer/bmc150_magn_spi.c
@@ -66,3 +66,4 @@ module_spi_driver(bmc150_magn_spi_driver);
MODULE_AUTHOR("Daniel Baluta <daniel.baluta@intel.com");
MODULE_DESCRIPTION("BMC150 magnetometer SPI driver");
MODULE_LICENSE("GPL v2");
+MODULE_IMPORT_NS(IIO_BMC150_MAGN);