Skip to content

Commit

Permalink
treewide: use full path to sensor.h header
Browse files Browse the repository at this point in the history
The build infrastructure should not be adding the drivers subdirectory
to the include path.  Fix the legacy uses that depended on that
addition.

Signed-off-by: Peter Bigot <[email protected]>
  • Loading branch information
pabigot authored and carlescufi committed Jan 26, 2020
1 parent 12e30f1 commit 165fe48
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion drivers/clock_control/nrf_clock_calibration.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <sensor.h>
#include <drivers/sensor.h>
#include <drivers/clock_control.h>
#include "nrf_clock_calibration.h"
#include <drivers/clock_control/nrf_clock_control.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/ccs811/ccs811_trigger.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <sensor.h>
#include <drivers/sensor.h>
#include "ccs811.h"

#define LOG_LEVEL CONFIG_SENSOR_LOG_LEVEL
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/lps22hh/lps22hh.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* https://www.st.com/resource/en/datasheet/lps22hh.pdf
*/

#include <sensor.h>
#include <drivers/sensor.h>
#include <kernel.h>
#include <device.h>
#include <init.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/lps22hh/lps22hh.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <drivers/i2c.h>
#include <drivers/spi.h>
#include <drivers/gpio.h>
#include <sensor.h>
#include <drivers/sensor.h>
#include <zephyr/types.h>
#include <sys/util.h>
#include "lps22hh_reg.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/lps22hh/lps22hh_trigger.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#include <kernel.h>
#include <sensor.h>
#include <drivers/sensor.h>
#include <drivers/gpio.h>
#include <logging/log.h>

Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/lsm6dso/lsm6dso.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* https://www.st.com/resource/en/datasheet/lsm6dso.pdf
*/

#include <sensor.h>
#include <drivers/sensor.h>
#include <kernel.h>
#include <device.h>
#include <init.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/lsm6dso/lsm6dso.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef ZEPHYR_DRIVERS_SENSOR_LSM6DSO_LSM6DSO_H_
#define ZEPHYR_DRIVERS_SENSOR_LSM6DSO_LSM6DSO_H_

#include <sensor.h>
#include <drivers/sensor.h>
#include <zephyr/types.h>
#include <drivers/gpio.h>
#include <drivers/spi.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/lsm6dso/lsm6dso_shub.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <sys/__assert.h>
#include <sys/util.h>
#include <kernel.h>
#include <sensor.h>
#include <drivers/sensor.h>
#include <logging/log.h>

#include "lsm6dso.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/lsm6dso/lsm6dso_trigger.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#include <kernel.h>
#include <sensor.h>
#include <drivers/sensor.h>
#include <drivers/gpio.h>
#include <logging/log.h>

Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/sensor_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <string.h>
#include <ctype.h>
#include <device.h>
#include <sensor.h>
#include <drivers/sensor.h>

#define SENSOR_GET_HELP \
"Get sensor data. Channel names are optional. All channels are read " \
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/si7006/si7006.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <sensor.h>
#include <drivers/sensor.h>
#include <kernel.h>
#include <device.h>
#include <init.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/stts751/stts751.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* https://www.st.com/resource/en/datasheet/stts751.pdf
*/

#include <sensor.h>
#include <drivers/sensor.h>
#include <kernel.h>
#include <device.h>
#include <init.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/stts751/stts751.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <stdint.h>
#include <drivers/i2c.h>
#include <drivers/gpio.h>
#include <sensor.h>
#include <drivers/sensor.h>
#include <zephyr/types.h>
#include <sys/util.h>
#include "stts751_reg.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/sensor/stts751/stts751_trigger.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#include <kernel.h>
#include <sensor.h>
#include <drivers/sensor.h>
#include <drivers/gpio.h>
#include <logging/log.h>

Expand Down
2 changes: 1 addition & 1 deletion samples/shields/x_nucleo_iks01a3/sensorhub/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <zephyr.h>
#include <device.h>
#include <sensor.h>
#include <drivers/sensor.h>
#include <stdio.h>
#include <sys/util.h>

Expand Down
2 changes: 1 addition & 1 deletion samples/shields/x_nucleo_iks01a3/standard/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <zephyr.h>
#include <device.h>
#include <sensor.h>
#include <drivers/sensor.h>
#include <stdio.h>
#include <sys/util.h>

Expand Down

0 comments on commit 165fe48

Please sign in to comment.