diff options
| author | Jonathan Cameron | 2022-06-04 16:53:05 +0100 |
|---|---|---|
| committer | Jonathan Cameron | 2022-06-21 21:30:31 +0100 |
| commit | 53bee458b8ad35a1fb6cf552d3d25dae910cc820 (patch) | |
| tree | 6096e8ed6366cbcac32c1f8ee609fb8c8e6f78f4 /drivers/iio/chemical/sps30_serial.c | |
| parent | 0f26b9db8dfde33184f8afa79845da267bd6cf9f (diff) | |
iio: chemical: sps30: Move symbol exports into IIO_SPS30 namespace
Avoid unnecessary pollution of the global symbol namespace by
moving library functions in to a specific namespace and import
that into the drivers that make use of the functions.
For more info: https://lwn.net/Articles/760045/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Tomasz Duszynski <tomasz.duszynski@octakon.com>
Link: https://lore.kernel.org/r/20220220173701.502331-4-jic23@kernel.org
Reviewed-By: Joe Simmons-Talbott <joetalbott@gmail.com>
Link: https://lore.kernel.org/r/20220604155306.422937-4-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/chemical/sps30_serial.c')
| -rw-r--r-- | drivers/iio/chemical/sps30_serial.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/chemical/sps30_serial.c b/drivers/iio/chemical/sps30_serial.c index 3f311d50087c..164f4b3e025c 100644 --- a/drivers/iio/chemical/sps30_serial.c +++ b/drivers/iio/chemical/sps30_serial.c @@ -429,3 +429,4 @@ module_serdev_device_driver(sps30_serial_driver); MODULE_AUTHOR("Tomasz Duszynski <tomasz.duszynski@octakon.com>"); MODULE_DESCRIPTION("Sensirion SPS30 particulate matter sensor serial driver"); MODULE_LICENSE("GPL v2"); +MODULE_IMPORT_NS(IIO_SPS30); |
