summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/bma400_i2c.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-01-16 21:05:26 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-02-18 14:36:53 +0300
commitf9c02c94858dd8974f82060a3f1292f4132848b0 (patch)
treeecac6e4fe8f2f635056ce31ccabea2b720e0eecb /drivers/iio/accel/bma400_i2c.c
parentc24ef124e9448ecdfea83aecf5d53364ef88a781 (diff)
downloadlinux-f9c02c94858dd8974f82060a3f1292f4132848b0.tar.xz
iio:accel:bma400: Move exports into IIO_BMA400 namespace
In order to avoid unnecessary pollution of the global symbol namespace move the core bma400 functions into a bma400 specific namespace and import that into the two bus modules. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20220116180535.2367780-5-jic23@kernel.org
Diffstat (limited to 'drivers/iio/accel/bma400_i2c.c')
-rw-r--r--drivers/iio/accel/bma400_i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/accel/bma400_i2c.c b/drivers/iio/accel/bma400_i2c.c
index f50df5310beb..da104ffd3fe0 100644
--- a/drivers/iio/accel/bma400_i2c.c
+++ b/drivers/iio/accel/bma400_i2c.c
@@ -61,3 +61,4 @@ module_i2c_driver(bma400_i2c_driver);
MODULE_AUTHOR("Dan Robertson <dan@dlrobertson.com>");
MODULE_DESCRIPTION("Bosch BMA400 triaxial acceleration sensor (I2C)");
MODULE_LICENSE("GPL");
+MODULE_IMPORT_NS(IIO_BMA400);