diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-01-16 18:05:31 +0000 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-02-18 11:36:54 +0000 |
commit | 26b74d852f6c53868d88a067f497da7ebbdaae9f (patch) | |
tree | c9f7f3f2b7736295f086ebdf0abe43fa51992ffd /drivers/iio/accel/bmc150-accel-spi.c | |
parent | 489c75af0f4da1e83ba08895bdda533663faf592 (diff) |
iio:accel:bmc150: Move exports into IIO_BMC150 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/
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20220116180535.2367780-10-jic23@kernel.org
Diffstat (limited to 'drivers/iio/accel/bmc150-accel-spi.c')
-rw-r--r-- | drivers/iio/accel/bmc150-accel-spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/accel/bmc150-accel-spi.c b/drivers/iio/accel/bmc150-accel-spi.c index 11559567cb39..000632c52800 100644 --- a/drivers/iio/accel/bmc150-accel-spi.c +++ b/drivers/iio/accel/bmc150-accel-spi.c @@ -84,3 +84,4 @@ module_spi_driver(bmc150_accel_driver); MODULE_AUTHOR("Markus Pargmann <mpa@pengutronix.de>"); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("BMC150 SPI accelerometer driver"); +MODULE_IMPORT_NS(IIO_BMC150); |