diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-01-30 23:56:59 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-02-18 14:42:27 +0300 |
commit | 7e615caf5c0f91dcd186fc8e93a454932199b04d (patch) | |
tree | a7531d2615da4c8de19cd14af100f26558378c4a /drivers/iio/magnetometer/hmc5843_spi.c | |
parent | 47d6cae0d0ea7477b5ea5f43a5b9be759052566b (diff) | |
download | linux-7e615caf5c0f91dcd186fc8e93a454932199b04d.tar.xz |
iio:magnetometer:hmc5843: Move exports to IIO_HMC5843 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-15-jic23@kernel.org
Diffstat (limited to 'drivers/iio/magnetometer/hmc5843_spi.c')
-rw-r--r-- | drivers/iio/magnetometer/hmc5843_spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/magnetometer/hmc5843_spi.c b/drivers/iio/magnetometer/hmc5843_spi.c index 89cf59a62c28..f2a8e98d8eb5 100644 --- a/drivers/iio/magnetometer/hmc5843_spi.c +++ b/drivers/iio/magnetometer/hmc5843_spi.c @@ -102,3 +102,4 @@ module_spi_driver(hmc5843_driver); MODULE_AUTHOR("Josef Gajdusek <atx@atx.name>"); MODULE_DESCRIPTION("HMC5983 SPI driver"); MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS(IIO_HMC5843); |