]> git.baikalelectronics.ru Git - kernel.git/commit
iio: pressure: bmp280: Move symbol exports to IIO_BMP280 namespace
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 4 Jun 2022 15:53:04 +0000 (16:53 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 21 Jun 2022 20:30:31 +0000 (21:30 +0100)
commitd4d392817bcf9d76c13e9ce133a672b3e637d664
treec537db4b691b66c48cfe46bea726fa2ce4689c29
parent59ea3305d779ea4f35bcbbf44f3b866130dd2382
iio: pressure: bmp280: Move symbol exports to IIO_BMP280 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>
Link: https://lore.kernel.org/r/20220220173701.502331-3-jic23@kernel.org
Reviewed-By: Joe Simmons-Talbott <joetalbott@gmail.com>
Link: https://lore.kernel.org/r/20220604155306.422937-3-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/bmp280-core.c
drivers/iio/pressure/bmp280-i2c.c
drivers/iio/pressure/bmp280-regmap.c
drivers/iio/pressure/bmp280-spi.c