diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-01-30 23:56:52 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-02-18 14:42:26 +0300 |
commit | 2ebc23b34c7faf3f7018becca0a1078e2b9405e8 (patch) | |
tree | 90879d4a24bc39cc560ebf2f3d9ea1df78ba9b50 /drivers/iio/dac/ad5696-i2c.c | |
parent | 4dcd738473f211a8546eceeb466e5bc1698849c7 (diff) | |
download | linux-2ebc23b34c7faf3f7018becca0a1078e2b9405e8.tar.xz |
iio:dac:ad5686: Move exports into IIO_AD5686 namespace
Note these are used in the related ad5696-i2c drivers as well as the
more obviously connected ad5686-spi driver.
In order to avoid unnecessary pollution of the global symbol namespace
move the common/library functions into a specific namespace and import
that into the various specific device drivers that use them.
For more information see https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220130205701.334592-8-jic23@kernel.org
Diffstat (limited to 'drivers/iio/dac/ad5696-i2c.c')
-rw-r--r-- | drivers/iio/dac/ad5696-i2c.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/dac/ad5696-i2c.c b/drivers/iio/dac/ad5696-i2c.c index 93f0e0e66c22..762503c1901b 100644 --- a/drivers/iio/dac/ad5696-i2c.c +++ b/drivers/iio/dac/ad5696-i2c.c @@ -125,3 +125,4 @@ module_i2c_driver(ad5686_i2c_driver); MODULE_AUTHOR("Stefan Popa <stefan.popa@analog.com>"); MODULE_DESCRIPTION("Analog Devices AD5686 and similar multi-channel DACs"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(IIO_AD5686); |