]> git.baikalelectronics.ru Git - kernel.git/commit
iio: chemical: scd30: Move symbol exports into IIO_SCD30 namespace
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 1 Apr 2022 14:06:05 +0000 (15:06 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Apr 2022 18:16:34 +0000 (20:16 +0200)
commit2215afd9a00d65caf6552ebb7e865baad915d892
treeccd04139dd6a3d9991d029f593d7ad0078d3e1e2
parent51478f5f5cfed3a593e91181b368dbab83042726
iio: chemical: scd30: Move symbol exports into IIO_SCD30 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>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/iio/chemical/scd30_core.c
drivers/iio/chemical/scd30_i2c.c
drivers/iio/chemical/scd30_serial.c