summaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/adxl345_i2c.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-01-16 19:05:28 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-02-18 12:36:54 +0100
commit0a18114d3ffd0ce0dc3a356d0c2fc7b5b8afc0ae (patch)
tree17b4efd354fbafe43cedffff663cd77207fb87c1 /drivers/iio/accel/adxl345_i2c.c
parentiio:accel:adxl313: Move exports into IIO_ADXL313 namespace (diff)
downloadlinux-0a18114d3ffd0ce0dc3a356d0c2fc7b5b8afc0ae.tar.xz
linux-0a18114d3ffd0ce0dc3a356d0c2fc7b5b8afc0ae.zip
iio:accel:adxl345: Move exports into IIO_ADXL345 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. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20220116180535.2367780-7-jic23@kernel.org
Diffstat (limited to 'drivers/iio/accel/adxl345_i2c.c')
-rw-r--r--drivers/iio/accel/adxl345_i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/accel/adxl345_i2c.c b/drivers/iio/accel/adxl345_i2c.c
index a431cba216e6..7bc8324c4f07 100644
--- a/drivers/iio/accel/adxl345_i2c.c
+++ b/drivers/iio/accel/adxl345_i2c.c
@@ -68,3 +68,4 @@ module_i2c_driver(adxl345_i2c_driver);
MODULE_AUTHOR("Eva Rachel Retuya <eraretuya@gmail.com>");
MODULE_DESCRIPTION("ADXL345 3-Axis Digital Accelerometer I2C driver");
MODULE_LICENSE("GPL v2");
+MODULE_IMPORT_NS(IIO_ADXL345);