diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-01-16 21:05:29 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-02-18 14:36:54 +0300 |
commit | fe2fe330e0d1efdf3b366f26deaf92fac7c28340 (patch) | |
tree | 1f474b9830d401c8775d7f1761286b734a0c34c8 /drivers/iio/accel/adxl355_spi.c | |
parent | 0a18114d3ffd0ce0dc3a356d0c2fc7b5b8afc0ae (diff) | |
download | linux-fe2fe330e0d1efdf3b366f26deaf92fac7c28340.tar.xz |
iio:accel:adxl355: Move exports into IIO_ADXL355 namespace
To avoid unnecessary pollution of the global symbol namespace move the
driver core exports into their own namespace and import that into the two
bus modules.
For more info see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Puranjay Mohan <puranjay12@gmail.com>
Link: https://lore.kernel.org/r/20220116180535.2367780-8-jic23@kernel.org
Diffstat (limited to 'drivers/iio/accel/adxl355_spi.c')
-rw-r--r-- | drivers/iio/accel/adxl355_spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/accel/adxl355_spi.c b/drivers/iio/accel/adxl355_spi.c index fb225aeb56e3..5fe986ae03f6 100644 --- a/drivers/iio/accel/adxl355_spi.c +++ b/drivers/iio/accel/adxl355_spi.c @@ -63,3 +63,4 @@ module_spi_driver(adxl355_spi_driver); MODULE_AUTHOR("Puranjay Mohan <puranjay12@gmail.com>"); MODULE_DESCRIPTION("ADXL355 3-Axis Digital Accelerometer SPI driver"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(IIO_ADXL355); |