Skip to content

Commit 5f5a905

Browse files
gmarullcarlescufi
authored andcommitted
modules: migrate includes to <zephyr/...>
In order to bring consistency in-tree, migrate all modules code to the new prefix <zephyr/...>. Note that the conversion has been scripted, refer to #45388 for more details. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 1681166 commit 5f5a905

29 files changed

+61
-61
lines changed

modules/canopennode/CO_driver.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <zephyr.h>
8-
#include <drivers/can.h>
9-
#include <init.h>
10-
#include <sys/util.h>
7+
#include <zephyr/zephyr.h>
8+
#include <zephyr/drivers/can.h>
9+
#include <zephyr/init.h>
10+
#include <zephyr/sys/util.h>
1111

1212
#include <canopennode.h>
1313

1414
#define LOG_LEVEL CONFIG_CANOPEN_LOG_LEVEL
15-
#include <logging/log.h>
15+
#include <zephyr/logging/log.h>
1616
LOG_MODULE_REGISTER(canopen_driver);
1717

1818
K_KERNEL_STACK_DEFINE(canopen_tx_workq_stack,

modules/canopennode/CO_driver_target.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
extern "C" {
1919
#endif
2020

21-
#include <zephyr.h>
21+
#include <zephyr/zephyr.h>
2222
#include <zephyr/types.h>
23-
#include <device.h>
24-
#include <toolchain.h>
23+
#include <zephyr/device.h>
24+
#include <zephyr/toolchain.h>
2525

2626
/* Use static variables instead of calloc() */
2727
#define CO_USE_GLOBALS

modules/canopennode/canopen_program.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
#include <CANopen.h>
88

99
#include <canopennode.h>
10-
#include <dfu/flash_img.h>
11-
#include <dfu/mcuboot.h>
12-
#include <storage/flash_map.h>
13-
#include <sys/crc.h>
10+
#include <zephyr/dfu/flash_img.h>
11+
#include <zephyr/dfu/mcuboot.h>
12+
#include <zephyr/storage/flash_map.h>
13+
#include <zephyr/sys/crc.h>
1414

1515
#define LOG_LEVEL CONFIG_CANOPEN_LOG_LEVEL
16-
#include <logging/log.h>
16+
#include <zephyr/logging/log.h>
1717
LOG_MODULE_REGISTER(canopen_program);
1818

1919
/* Object dictionary indexes */

modules/canopennode/canopen_storage.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <settings/settings.h>
7+
#include <zephyr/settings/settings.h>
88

99
#include <CANopen.h>
1010
#include <CO_Emergency.h>
@@ -13,7 +13,7 @@
1313
#include <canopennode.h>
1414

1515
#define LOG_LEVEL CONFIG_CANOPEN_LOG_LEVEL
16-
#include <logging/log.h>
16+
#include <zephyr/logging/log.h>
1717
LOG_MODULE_REGISTER(canopen_storage);
1818

1919
/* 's', 'a', 'v', 'e' from LSB to MSB */

modules/fff/include/c_test_framework.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define MODULES_FFF_TEST_INCLUDE_C_TEST_FRAMEWORK_H_
88

99
#include <ztest.h>
10-
#include <sys/printk.h>
10+
#include <zephyr/sys/printk.h>
1111

1212
void setup(void);
1313
void fff_test_suite(void);

modules/hal_nordic/nrf_802154/radio/platform/nrf_802154_random_zephyr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
#include <platform/nrf_802154_temperature.h>
9-
#include <drivers/entropy.h>
9+
#include <zephyr/drivers/entropy.h>
1010

1111
static uint32_t state;
1212

modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_init_net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <init.h>
7+
#include <zephyr/init.h>
88

99
#include "nrf_802154.h"
1010
#include "nrf_802154_serialization.h"

modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_serialization_crit_sect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "nrf_802154_serialization_crit_sect.h"
88

99
#ifndef TEST
10-
#include <irq.h>
10+
#include <zephyr/irq.h>
1111
#endif
1212

1313
void nrf_802154_serialization_crit_sect_enter(uint32_t *p_critical_section)

modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_backend_ipc.c

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

7-
#include <zephyr.h>
8-
#include <ipc/ipc_service.h>
9-
#include <device.h>
10-
#include <logging/log.h>
7+
#include <zephyr/zephyr.h>
8+
#include <zephyr/ipc/ipc_service.h>
9+
#include <zephyr/device.h>
10+
#include <zephyr/logging/log.h>
1111

1212
#include "nrf_802154_spinel_backend_callouts.h"
1313
#include "nrf_802154_serialization_error.h"

modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <stdint.h>
88
#include <stddef.h>
99

10-
#include <kernel.h>
10+
#include <zephyr/kernel.h>
1111

1212
void nrf_802154_spinel_log(const char *p_fmt, ...)
1313
{

0 commit comments

Comments
 (0)