Skip to content

Commit 11585b1

Browse files
gmarullcarlescufi
authored andcommitted
app, drivers: migrate includes to <zephyr/...>
Zephyr includes are now prefixed with <zephyr/...>. While the old path can still be used when CONFIG_LEGACY_INCLUDE_PATH=y, it's better to be prepared for the future. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent af7ec8a commit 11585b1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
#include <kernel.h>
7-
#include <drivers/sensor.h>
6+
#include <zephyr/kernel.h>
7+
#include <zephyr/drivers/sensor.h>
88

99
#include "app_version.h"
1010

11-
#include <logging/log.h>
11+
#include <zephyr/logging/log.h>
1212
LOG_MODULE_REGISTER(main, CONFIG_APP_LOG_LEVEL);
1313

1414
void main(void)

drivers/sensor/examplesensor/examplesensor.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
#define DT_DRV_COMPAT zephyr_examplesensor
77

8-
#include <device.h>
9-
#include <drivers/gpio.h>
10-
#include <drivers/sensor.h>
8+
#include <zephyr/device.h>
9+
#include <zephyr/drivers/gpio.h>
10+
#include <zephyr/drivers/sensor.h>
1111

12-
#include <logging/log.h>
12+
#include <zephyr/logging/log.h>
1313
LOG_MODULE_REGISTER(examplesensor, CONFIG_SENSOR_LOG_LEVEL);
1414

1515
struct examplesensor_data {

0 commit comments

Comments
 (0)