From 77a53a21b1bb33bb0d753256af68f72750ba3e63 Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Wed, 27 Mar 2024 19:21:00 -0500 Subject: [PATCH] drivers: sensor: seeed: Move to vendor subdirectory Organizes sensor drivers by vendor to distribute maintainership responsibilities. Signed-off-by: Maureen Helm --- drivers/sensor/CMakeLists.txt | 3 +-- drivers/sensor/Kconfig | 3 +-- drivers/sensor/seeed/CMakeLists.txt | 7 +++++++ drivers/sensor/seeed/Kconfig | 7 +++++++ drivers/sensor/{ => seeed}/grove/CMakeLists.txt | 0 drivers/sensor/{ => seeed}/grove/Kconfig | 0 drivers/sensor/{ => seeed}/grove/light_sensor.c | 0 drivers/sensor/{ => seeed}/grove/temperature_sensor.c | 0 drivers/sensor/{ => seeed}/hm330x/CMakeLists.txt | 0 drivers/sensor/{ => seeed}/hm330x/Kconfig | 0 drivers/sensor/{ => seeed}/hm330x/hm330x.c | 0 11 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 drivers/sensor/seeed/CMakeLists.txt create mode 100644 drivers/sensor/seeed/Kconfig rename drivers/sensor/{ => seeed}/grove/CMakeLists.txt (100%) rename drivers/sensor/{ => seeed}/grove/Kconfig (100%) rename drivers/sensor/{ => seeed}/grove/light_sensor.c (100%) rename drivers/sensor/{ => seeed}/grove/temperature_sensor.c (100%) rename drivers/sensor/{ => seeed}/hm330x/CMakeLists.txt (100%) rename drivers/sensor/{ => seeed}/hm330x/Kconfig (100%) rename drivers/sensor/{ => seeed}/hm330x/hm330x.c (100%) diff --git a/drivers/sensor/CMakeLists.txt b/drivers/sensor/CMakeLists.txt index db4d92216b..2eb781db99 100644 --- a/drivers/sensor/CMakeLists.txt +++ b/drivers/sensor/CMakeLists.txt @@ -11,6 +11,7 @@ add_subdirectory(nordic) add_subdirectory(nuvoton) add_subdirectory(nxp) add_subdirectory(rohm) +add_subdirectory(seeed) add_subdirectory(sensirion) add_subdirectory(silabs) add_subdirectory(st) @@ -34,9 +35,7 @@ add_subdirectory_ifdef(CONFIG_ESP32_TEMP esp32_temp) add_subdirectory_ifdef(CONFIG_EXPLORIR_M explorir_m) add_subdirectory_ifdef(CONFIG_F75303 f75303) add_subdirectory_ifdef(CONFIG_FCX_MLDX5 fcx_mldx5) -add_subdirectory_ifdef(CONFIG_GROVE_SENSORS grove) add_subdirectory_ifdef(CONFIG_GROW_R502A grow_r502a) -add_subdirectory_ifdef(CONFIG_HM330X hm330x) add_subdirectory_ifdef(CONFIG_HMC5883L hmc5883l) add_subdirectory_ifdef(CONFIG_HP206C hp206c) add_subdirectory_ifdef(CONFIG_HS300X hs300x) diff --git a/drivers/sensor/Kconfig b/drivers/sensor/Kconfig index b52877b363..3c9aa6e85f 100644 --- a/drivers/sensor/Kconfig +++ b/drivers/sensor/Kconfig @@ -92,6 +92,7 @@ source "drivers/sensor/nordic/Kconfig" source "drivers/sensor/nuvoton/Kconfig" source "drivers/sensor/nxp/Kconfig" source "drivers/sensor/rohm/Kconfig" +source "drivers/sensor/seeed/Kconfig" source "drivers/sensor/sensirion/Kconfig" source "drivers/sensor/silabs/Kconfig" source "drivers/sensor/st/Kconfig" @@ -115,9 +116,7 @@ source "drivers/sensor/esp32_temp/Kconfig" source "drivers/sensor/explorir_m/Kconfig" source "drivers/sensor/f75303/Kconfig" source "drivers/sensor/fcx_mldx5/Kconfig" -source "drivers/sensor/grove/Kconfig" source "drivers/sensor/grow_r502a/Kconfig" -source "drivers/sensor/hm330x/Kconfig" source "drivers/sensor/hmc5883l/Kconfig" source "drivers/sensor/hp206c/Kconfig" source "drivers/sensor/hs300x/Kconfig" diff --git a/drivers/sensor/seeed/CMakeLists.txt b/drivers/sensor/seeed/CMakeLists.txt new file mode 100644 index 0000000000..569f83a541 --- /dev/null +++ b/drivers/sensor/seeed/CMakeLists.txt @@ -0,0 +1,7 @@ +# Copyright (c) 2024 Analog Devices, Inc. +# SPDX-License-Identifier: Apache-2.0 + +# zephyr-keep-sorted-start +add_subdirectory_ifdef(CONFIG_GROVE_SENSORS grove) +add_subdirectory_ifdef(CONFIG_HM330X hm330x) +# zephyr-keep-sorted-stop diff --git a/drivers/sensor/seeed/Kconfig b/drivers/sensor/seeed/Kconfig new file mode 100644 index 0000000000..4c5156cdff --- /dev/null +++ b/drivers/sensor/seeed/Kconfig @@ -0,0 +1,7 @@ +# Copyright (c) 2024 Analog Devices, Inc. +# SPDX-License-Identifier: Apache-2.0 + +# zephyr-keep-sorted-start +source "drivers/sensor/seeed/grove/Kconfig" +source "drivers/sensor/seeed/hm330x/Kconfig" +# zephyr-keep-sorted-stop diff --git a/drivers/sensor/grove/CMakeLists.txt b/drivers/sensor/seeed/grove/CMakeLists.txt similarity index 100% rename from drivers/sensor/grove/CMakeLists.txt rename to drivers/sensor/seeed/grove/CMakeLists.txt diff --git a/drivers/sensor/grove/Kconfig b/drivers/sensor/seeed/grove/Kconfig similarity index 100% rename from drivers/sensor/grove/Kconfig rename to drivers/sensor/seeed/grove/Kconfig diff --git a/drivers/sensor/grove/light_sensor.c b/drivers/sensor/seeed/grove/light_sensor.c similarity index 100% rename from drivers/sensor/grove/light_sensor.c rename to drivers/sensor/seeed/grove/light_sensor.c diff --git a/drivers/sensor/grove/temperature_sensor.c b/drivers/sensor/seeed/grove/temperature_sensor.c similarity index 100% rename from drivers/sensor/grove/temperature_sensor.c rename to drivers/sensor/seeed/grove/temperature_sensor.c diff --git a/drivers/sensor/hm330x/CMakeLists.txt b/drivers/sensor/seeed/hm330x/CMakeLists.txt similarity index 100% rename from drivers/sensor/hm330x/CMakeLists.txt rename to drivers/sensor/seeed/hm330x/CMakeLists.txt diff --git a/drivers/sensor/hm330x/Kconfig b/drivers/sensor/seeed/hm330x/Kconfig similarity index 100% rename from drivers/sensor/hm330x/Kconfig rename to drivers/sensor/seeed/hm330x/Kconfig diff --git a/drivers/sensor/hm330x/hm330x.c b/drivers/sensor/seeed/hm330x/hm330x.c similarity index 100% rename from drivers/sensor/hm330x/hm330x.c rename to drivers/sensor/seeed/hm330x/hm330x.c