drivers: sensor: clean up zephyr_library calls, again

Apply the same fix in bd8afe9365
(" drivers: sensor: clean up zephyr_library calls") to remove
redundant code in the sensor driver build system files. Additional
instances of the antipattern have crept in.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2021-08-30 11:09:22 -07:00 committed by Anas Nashif
commit 21c6ca9487
3 changed files with 4 additions and 6 deletions

View file

@ -5,4 +5,4 @@
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_LSM303DLHC_MAGN lsm303dlhc_magn.c)
zephyr_library_sources(lsm303dlhc_magn.c)

View file

@ -1,6 +1,5 @@
# Copyright (c) 2019 Thomas Schmid <tom@lfence.de>
# SPDX-License-Identifier: Apache-2.0
zephyr_library_sources(ms5607.c)
zephyr_library_sources(ms5607_i2c.c)
zephyr_library_sources_ifdef(CONFIG_MS5607 ms5607_spi.c)
zephyr_library()
zephyr_library_sources(ms5607.c ms5607_i2c.c ms5607_spi.c)

View file

@ -1,5 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_SHTCX shtcx.c)
zephyr_library_sources(shtcx.c)