aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/kxsd9-spi.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-01-16 18:05:25 +0000
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-02-18 11:36:53 +0000
commitc24ef124e9448ecdfea83aecf5d53364ef88a781 (patch)
tree764bba5d80738bcebe37e375866989627ec260aa /drivers/iio/accel/kxsd9-spi.c
parentiio:accel:mma7455_core: Move exports into IIO_MMA7455 namespace (diff)
downloadlinux-dev-c24ef124e9448ecdfea83aecf5d53364ef88a781.tar.xz
linux-dev-c24ef124e9448ecdfea83aecf5d53364ef88a781.zip
iio:accel:kxsd9: Move exports into IIO_KDSD9 namespace
In order to avoid unnecessary pollution of the global symbol namespace move the core kxsd9 functions into a kxsd9 specific namespace and import that into the two bus modules. For more information see https://lwn.net/Articles/760045/ Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20220116180535.2367780-4-jic23@kernel.org
Diffstat (limited to 'drivers/iio/accel/kxsd9-spi.c')
-rw-r--r--drivers/iio/accel/kxsd9-spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/accel/kxsd9-spi.c b/drivers/iio/accel/kxsd9-spi.c
index 441e6b764281..a06a3a273de7 100644
--- a/drivers/iio/accel/kxsd9-spi.c
+++ b/drivers/iio/accel/kxsd9-spi.c
@@ -66,3 +66,4 @@ module_spi_driver(kxsd9_spi_driver);
MODULE_AUTHOR("Jonathan Cameron <jic23@kernel.org>");
MODULE_DESCRIPTION("Kionix KXSD9 SPI driver");
MODULE_LICENSE("GPL v2");
+MODULE_IMPORT_NS(IIO_KXSD9);