diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-01-16 21:05:24 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-02-18 14:36:53 +0300 |
commit | eca7b25bee064575eb80a025cdee66eb2d65174d (patch) | |
tree | 5ba2f51a29c2e8b6f05222970938c7ccde710442 /drivers/iio/accel/mma7455_i2c.c | |
parent | 4205a215803f7d9a04fcd642bca22de78ea80156 (diff) | |
download | linux-eca7b25bee064575eb80a025cdee66eb2d65174d.tar.xz |
iio:accel:mma7455_core: Move exports into IIO_MMA7455 namespace
In order to avoid unnecessary pollution of the global symbol namespace
move the core mma7455 functions into an mma7455 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>
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220116180535.2367780-3-jic23@kernel.org
Diffstat (limited to 'drivers/iio/accel/mma7455_i2c.c')
-rw-r--r-- | drivers/iio/accel/mma7455_i2c.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/accel/mma7455_i2c.c b/drivers/iio/accel/mma7455_i2c.c index 8a5256516f9f..a3b84e8a3ea8 100644 --- a/drivers/iio/accel/mma7455_i2c.c +++ b/drivers/iio/accel/mma7455_i2c.c @@ -61,3 +61,4 @@ module_i2c_driver(mma7455_i2c_driver); MODULE_AUTHOR("Joachim Eastwood <manabian@gmail.com>"); MODULE_DESCRIPTION("Freescale MMA7455L I2C accelerometer driver"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(IIO_MMA7455); |