From 37cf07df27d3dcb02eaeb86716a588eabb58f230 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 15 Oct 2016 08:19:54 -0400 Subject: [PATCH] sensors: hdc1008: move hdc1008 to own directory under drivers/sensor/ Change-Id: If1a7805ab2053b3588318c2a3d5b549a667cb0fb Signed-off-by: Anas Nashif --- drivers/sensor/Kconfig | 2 +- drivers/sensor/Makefile | 2 +- drivers/sensor/{Kconfig.hdc1008 => hdc1008/Kconfig} | 2 +- drivers/sensor/hdc1008/Makefile | 1 + drivers/sensor/{sensor_hdc1008.c => hdc1008/hdc1008.c} | 2 +- drivers/sensor/{sensor_hdc1008.h => hdc1008/hdc1008.h} | 0 6 files changed, 5 insertions(+), 4 deletions(-) rename drivers/sensor/{Kconfig.hdc1008 => hdc1008/Kconfig} (95%) create mode 100644 drivers/sensor/hdc1008/Makefile rename drivers/sensor/{sensor_hdc1008.c => hdc1008/hdc1008.c} (99%) rename drivers/sensor/{sensor_hdc1008.h => hdc1008/hdc1008.h} (100%) diff --git a/drivers/sensor/Kconfig b/drivers/sensor/Kconfig index b8934740551..07455dbafc5 100644 --- a/drivers/sensor/Kconfig +++ b/drivers/sensor/Kconfig @@ -64,7 +64,7 @@ source "drivers/sensor/bmi160/Kconfig" source "drivers/sensor/dht/Kconfig" -source "drivers/sensor/Kconfig.hdc1008" +source "drivers/sensor/hdc1008/Kconfig" source "drivers/sensor/Kconfig.hmc5883l" diff --git a/drivers/sensor/Makefile b/drivers/sensor/Makefile index 7f3375a3da8..cb7fae7e4b4 100644 --- a/drivers/sensor/Makefile +++ b/drivers/sensor/Makefile @@ -7,7 +7,7 @@ obj-$(CONFIG_BME280) += bme280/ obj-$(CONFIG_BMG160) += bmg160/ obj-$(CONFIG_BMI160) += bmi160/ obj-$(CONFIG_DHT) += dht/ -obj-$(CONFIG_HDC1008) += sensor_hdc1008.o +obj-$(CONFIG_HDC1008) += hdc1008/ obj-$(CONFIG_HMC5883L) += sensor_hmc5883l.o obj-$(CONFIG_HMC5883L_TRIGGER) += sensor_hmc5883l_trigger.o obj-$(CONFIG_HP206C) += sensor_hp206c.o diff --git a/drivers/sensor/Kconfig.hdc1008 b/drivers/sensor/hdc1008/Kconfig similarity index 95% rename from drivers/sensor/Kconfig.hdc1008 rename to drivers/sensor/hdc1008/Kconfig index 24f13e70991..eb72fcbb84d 100644 --- a/drivers/sensor/Kconfig.hdc1008 +++ b/drivers/sensor/hdc1008/Kconfig @@ -1,4 +1,4 @@ -# Kconfig.hdc1008 - HDC1008 temperature and humidity sensor configuration options +# Kconfig - HDC1008 temperature and humidity sensor configuration options # # Copyright (c) 2016 Intel Corporation diff --git a/drivers/sensor/hdc1008/Makefile b/drivers/sensor/hdc1008/Makefile new file mode 100644 index 00000000000..242da075190 --- /dev/null +++ b/drivers/sensor/hdc1008/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_HDC1008) += hdc1008.o diff --git a/drivers/sensor/sensor_hdc1008.c b/drivers/sensor/hdc1008/hdc1008.c similarity index 99% rename from drivers/sensor/sensor_hdc1008.c rename to drivers/sensor/hdc1008/hdc1008.c index e636c684a02..f63ad0f08c6 100644 --- a/drivers/sensor/sensor_hdc1008.c +++ b/drivers/sensor/hdc1008/hdc1008.c @@ -22,7 +22,7 @@ #include #include -#include "sensor_hdc1008.h" +#include "hdc1008.h" static void hdc1008_gpio_callback(struct device *dev, struct gpio_callback *cb, uint32_t pins) diff --git a/drivers/sensor/sensor_hdc1008.h b/drivers/sensor/hdc1008/hdc1008.h similarity index 100% rename from drivers/sensor/sensor_hdc1008.h rename to drivers/sensor/hdc1008/hdc1008.h