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 <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2022-05-06 11:33:11 +02:00 committed by Carles Cufí
parent af7ec8a8ef
commit 11585b1765
2 changed files with 7 additions and 7 deletions

View file

@ -3,12 +3,12 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <drivers/sensor.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#include "app_version.h"
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(main, CONFIG_APP_LOG_LEVEL);
void main(void)

View file

@ -5,11 +5,11 @@
#define DT_DRV_COMPAT zephyr_examplesensor
#include <device.h>
#include <drivers/gpio.h>
#include <drivers/sensor.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/sensor.h>
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(examplesensor, CONFIG_SENSOR_LOG_LEVEL);
struct examplesensor_data {