zephyr/drivers/sensor/lps22hh
Martí Bolívar bd8afe9365 drivers: sensor: clean up zephyr_library calls
In drivers/sensor/CMakeLists.txt, we have various lines like this:

    add_subdirectory_ifdef(CONFIG_FOO foo)

Then drivers/sensor/foo/CMakeLists.txt says:

    zephyr_library()
    zephyr_library_sources_ifdef(CONFIG_FOO foo.c)

This is redundant; the foo/CMakeLists.txt won't be added to the build
system unless CONFIG_FOO=y in the first place, so there's no need for
extra boilerplate testing it again.

Remove all these unnecessary instances in each sensor driver's
CMakeLists.txt using this pattern:

    zephyr_library()
    zephyr_library_sources(foo.c)

In a couple of places, the '.c' extension is missing. Add them in for
consistency when that happens.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-06-30 09:36:33 -04:00
..
CMakeLists.txt drivers: sensor: clean up zephyr_library calls 2021-06-30 09:36:33 -04:00
Kconfig dts/Kconfig: Remove HAS_DTS_I2C 2020-09-18 13:34:44 -05:00
lps22hh.c drivers/sensor: lps22hh: Fix the raw to kPa sample conversion 2021-06-03 09:30:42 -05:00
lps22hh.h drivers/sensor: Clean unused axis structures 2021-06-18 11:22:58 +02:00
lps22hh_i2c.c drivers: sensor: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
lps22hh_spi.c drivers: sensor: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
lps22hh_trigger.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00