Skip to content

Commit

Permalink
drivers: migrate includes to <zephyr/...>
Browse files Browse the repository at this point in the history
In order to bring consistency in-tree, migrate all drivers to the new
prefix <zephyr/...>. Note that the conversion has been scripted, refer
to zephyrproject-rtos#45388 for more details.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
  • Loading branch information
gmarull authored and carlescufi committed May 6, 2022
1 parent cbd31d7 commit fb60aab
Show file tree
Hide file tree
Showing 1,118 changed files with 4,772 additions and 4,772 deletions.
16 changes: 8 additions & 8 deletions drivers/adc/adc_ads1x1x.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
*/

#include <stdbool.h>
#include <device.h>
#include <devicetree.h>
#include <drivers/adc.h>
#include <logging/log.h>
#include <drivers/i2c.h>
#include <zephyr.h>
#include <sys/byteorder.h>
#include <sys/util.h>
#include <zephyr/device.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/logging/log.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/zephyr.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>

#define ADC_CONTEXT_USES_KERNEL_TIMER
#include "adc_context.h"
Expand Down
10 changes: 5 additions & 5 deletions drivers/adc/adc_cc32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

#include <errno.h>

#include <drivers/adc.h>
#include <device.h>
#include <kernel.h>
#include <init.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/device.h>
#include <zephyr/kernel.h>
#include <zephyr/init.h>
#include <soc.h>

/* Driverlib includes */
Expand All @@ -28,7 +28,7 @@
#include "adc_context.h"

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_cc32xx);

#define ISR_MASK (ADC_DMA_DONE | ADC_FIFO_OVERFLOW | ADC_FIFO_UNDERFLOW \
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/adc_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <drivers/adc.h>
#include <zephyr/drivers/adc.h>

int adc_gain_invert(enum adc_gain gain,
int32_t *value)
Expand Down
4 changes: 2 additions & 2 deletions drivers/adc/adc_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#ifndef ZEPHYR_DRIVERS_ADC_ADC_CONTEXT_H_
#define ZEPHYR_DRIVERS_ADC_ADC_CONTEXT_H_

#include <drivers/adc.h>
#include <sys/atomic.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/sys/atomic.h>

#ifdef __cplusplus
extern "C" {
Expand Down
14 changes: 7 additions & 7 deletions drivers/adc/adc_emul.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

#define DT_DRV_COMPAT zephyr_adc_emul

#include <drivers/adc.h>
#include <drivers/adc/adc_emul.h>
#include <kernel.h>
#include <logging/log.h>
#include <sys/byteorder.h>
#include <sys/util.h>
#include <zephyr.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/drivers/adc/adc_emul.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/zephyr.h>

LOG_MODULE_REGISTER(adc_emul, CONFIG_ADC_LOG_LEVEL);

Expand Down
6 changes: 3 additions & 3 deletions drivers/adc/adc_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <drivers/adc.h>
#include <syscall_handler.h>
#include <kernel.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/syscall_handler.h>
#include <zephyr/kernel.h>

static inline int z_vrfy_adc_channel_setup(const struct device *dev,
const struct adc_channel_cfg *user_channel_cfg)
Expand Down
6 changes: 3 additions & 3 deletions drivers/adc/adc_ite_it8xxx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
#define DT_DRV_COMPAT ite_it8xxx2_adc

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_ite_it8xxx2);

#include <drivers/adc.h>
#include <drivers/pinctrl.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/drivers/pinctrl.h>
#include <soc.h>
#include <soc_dt.h>
#include <errno.h>
Expand Down
18 changes: 9 additions & 9 deletions drivers/adc/adc_lmp90xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
* @brief ADC driver for the LMP90xxx AFE.
*/

#include <drivers/adc.h>
#include <drivers/adc/lmp90xxx.h>
#include <drivers/gpio.h>
#include <drivers/spi.h>
#include <kernel.h>
#include <sys/byteorder.h>
#include <sys/crc.h>
#include <zephyr.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/drivers/adc/lmp90xxx.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/crc.h>
#include <zephyr/zephyr.h>

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_lmp90xxx);

#define ADC_CONTEXT_USES_KERNEL_TIMER
Expand Down
4 changes: 2 additions & 2 deletions drivers/adc/adc_mchp_xec.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#define DT_DRV_COMPAT microchip_xec_adc

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_mchp_xec);

#include <drivers/adc.h>
#include <zephyr/drivers/adc.h>
#include <soc.h>
#include <errno.h>

Expand Down
8 changes: 4 additions & 4 deletions drivers/adc/adc_mchp_xec_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
#define DT_DRV_COMPAT microchip_xec_adc_v2

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_mchp_xec);

#include <drivers/adc.h>
#include <drivers/interrupt_controller/intc_mchp_xec_ecia.h>
#include <drivers/pinctrl.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/drivers/interrupt_controller/intc_mchp_xec_ecia.h>
#include <zephyr/drivers/pinctrl.h>
#include <soc.h>
#include <errno.h>

Expand Down
16 changes: 8 additions & 8 deletions drivers/adc/adc_mcp320x.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
* @brief ADC driver for the MCP3204/MCP3208 ADCs.
*/

#include <drivers/adc.h>
#include <drivers/gpio.h>
#include <drivers/spi.h>
#include <kernel.h>
#include <logging/log.h>
#include <sys/byteorder.h>
#include <sys/util.h>
#include <zephyr.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/spi.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/zephyr.h>

LOG_MODULE_REGISTER(adc_mcp320x, CONFIG_ADC_LOG_LEVEL);

Expand Down
6 changes: 3 additions & 3 deletions drivers/adc/adc_mcux_12b1msps_sar.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

#define DT_DRV_COMPAT nxp_mcux_12b1msps_sar

#include <drivers/adc.h>
#include <zephyr/drivers/adc.h>
#include <fsl_adc.h>
#include <drivers/pinctrl.h>
#include <zephyr/drivers/pinctrl.h>

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_mcux_12b1msps_sar);

#define ADC_CONTEXT_USES_KERNEL_TIMER
Expand Down
6 changes: 3 additions & 3 deletions drivers/adc/adc_mcux_adc12.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

#define DT_DRV_COMPAT nxp_kinetis_adc12

#include <drivers/adc.h>
#include <zephyr/drivers/adc.h>
#include <fsl_adc12.h>
#include <drivers/pinctrl.h>
#include <zephyr/drivers/pinctrl.h>

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_mcux_adc12);

#define ADC_CONTEXT_USES_KERNEL_TIMER
Expand Down
8 changes: 4 additions & 4 deletions drivers/adc/adc_mcux_adc16.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
#define DT_DRV_COMPAT nxp_kinetis_adc16

#include <errno.h>
#include <drivers/adc.h>
#include <drivers/pinctrl.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/drivers/pinctrl.h>
#ifdef CONFIG_ADC_MCUX_ADC16_ENABLE_EDMA
#include <drivers/dma.h>
#include <zephyr/drivers/dma.h>
#endif

#include <fsl_adc16.h>

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_mcux_adc16);

#define ADC_CONTEXT_USES_KERNEL_TIMER
Expand Down
6 changes: 3 additions & 3 deletions drivers/adc/adc_mcux_lpadc.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
#define DT_DRV_COMPAT nxp_lpc_lpadc

#include <errno.h>
#include <drivers/adc.h>
#include <zephyr/drivers/adc.h>
#include <fsl_lpadc.h>

#if CONFIG_PINCTRL
#include <drivers/pinctrl.h>
#include <zephyr/drivers/pinctrl.h>
#endif

#if !defined(CONFIG_SOC_SERIES_IMX_RT11XX)
#include <fsl_power.h>
#endif

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(nxp_mcux_lpadc);

#define ADC_CONTEXT_USES_KERNEL_TIMER
Expand Down
10 changes: 5 additions & 5 deletions drivers/adc/adc_npcx.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
#define DT_DRV_COMPAT nuvoton_npcx_adc

#include <assert.h>
#include <drivers/adc.h>
#include <drivers/adc/adc_npcx_threshold.h>
#include <drivers/clock_control.h>
#include <kernel.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/drivers/adc/adc_npcx_threshold.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/kernel.h>
#include <soc.h>

#define ADC_CONTEXT_USES_KERNEL_TIMER
#include "adc_context.h"

#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_npcx, CONFIG_ADC_LOG_LEVEL);

/* ADC speed/delay values during initialization */
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/adc_nrfx_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <nrfx_adc.h>

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_nrfx_adc);

#define DT_DRV_COMPAT nordic_nrf_adc
Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/adc_nrfx_saadc.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <hal/nrf_saadc.h>

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_nrfx_saadc);

#define DT_DRV_COMPAT nordic_nrf_saadc
Expand Down
6 changes: 3 additions & 3 deletions drivers/adc/adc_sam0.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#define DT_DRV_COMPAT atmel_sam0_adc

#include <soc.h>
#include <drivers/adc.h>
#include <drivers/pinctrl.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/drivers/pinctrl.h>

#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_sam0, CONFIG_ADC_LOG_LEVEL);

#define ADC_CONTEXT_USES_KERNEL_TIMER
Expand Down
14 changes: 7 additions & 7 deletions drivers/adc/adc_sam_afec.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
*/

#include <errno.h>
#include <sys/__assert.h>
#include <sys/util.h>
#include <device.h>
#include <init.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/sys/util.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <soc.h>
#include <drivers/adc.h>
#include <drivers/pinctrl.h>
#include <zephyr/drivers/adc.h>
#include <zephyr/drivers/pinctrl.h>

#define ADC_CONTEXT_USES_KERNEL_TIMER
#include "adc_context.h"

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_sam_afec);

#define NUM_CHANNELS 12
Expand Down
10 changes: 5 additions & 5 deletions drivers/adc/adc_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <shell/shell.h>
#include <zephyr/shell/shell.h>
#include <stdlib.h>
#include <drivers/adc.h>
#include <zephyr/drivers/adc.h>
#include <ctype.h>
#include <sys/util.h>
#include <devicetree.h>
#include <zephyr/sys/util.h>
#include <zephyr/devicetree.h>

#if DT_HAS_COMPAT_STATUS_OKAY(atmel_sam_afec)
#define DT_DRV_COMPAT atmel_sam_afec
Expand Down Expand Up @@ -44,7 +44,7 @@
#endif

#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
#include <logging/log.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(adc_shell);

#define CMD_HELP_ACQ_TIME \
Expand Down
Loading

0 comments on commit fb60aab

Please sign in to comment.