Skip to content
Permalink
Browse files

cleanup: include/: move dma.h to drivers/dma.h

move dma.h to drivers/dma.h and
create a shim for backward-compatibility.

No functional changes to the headers.
A warning in the shim can be controlled with CONFIG_COMPAT_INCLUDES.

Related to #16539

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information...
nashif committed Jun 25, 2019
1 parent 7e7a9bd commit 46a5d1e5cbb8bdfbdd18ae6a9df647dc10fd49a9
@@ -14,7 +14,7 @@
#include <zephyr.h>
#include <device.h>
#include <soc.h>
#include <dma.h>
#include <drivers/dma.h>

#include <audio/dmic.h>
#include "intel_dmic.h"
@@ -11,7 +11,7 @@
#include <kernel.h>
#include <device.h>
#include <init.h>
#include <dma.h>
#include <drivers/dma.h>
#include <soc.h>
#include "dma_cavs.h"

@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <dma.h>
#include <drivers/dma.h>
#include <syscall_handler.h>

/* Both of these APIs are assuming that the drive implementations are checking
@@ -9,7 +9,7 @@
#include <init.h>
#include <string.h>
#include <soc.h>
#include <dma.h>
#include <drivers/dma.h>
#include <altera_common.h>
#include "altera_msgdma_csr_regs.h"
#include "altera_msgdma_descriptor_regs.h"
@@ -11,7 +11,7 @@
#include <soc.h>
#include <device.h>
#include <init.h>
#include <dma.h>
#include <drivers/dma.h>

#include "qm_dma.h"
#include "qm_isr.h"
@@ -6,7 +6,7 @@

#include <device.h>
#include <soc.h>
#include <dma.h>
#include <drivers/dma.h>

#include <logging/log.h>
LOG_MODULE_REGISTER(dma_sam0, CONFIG_DMA_LOG_LEVEL);
@@ -14,7 +14,7 @@
#include <init.h>
#include <string.h>
#include <soc.h>
#include <dma.h>
#include <drivers/dma.h>
#include "dma_sam_xdmac.h"

#define LOG_LEVEL CONFIG_DMA_LOG_LEVEL
@@ -7,7 +7,7 @@


#include <device.h>
#include <dma.h>
#include <drivers/dma.h>
#include <errno.h>
#include <init.h>
#include <stdio.h>
@@ -10,7 +10,7 @@
#include <init.h>
#include <soc.h>
#include <i2c.h>
#include <dma.h>
#include <drivers/dma.h>

#include <logging/log.h>
LOG_MODULE_REGISTER(i2c_sam0, CONFIG_I2C_LOG_LEVEL);
@@ -18,7 +18,7 @@
#include <kernel.h>
#include <device.h>
#include <init.h>
#include <dma.h>
#include <drivers/dma.h>
#include <i2s.h>
#include <soc.h>
#include "i2s_cavs.h"
@@ -5,7 +5,7 @@
*/

#include <string.h>
#include <dma.h>
#include <drivers/dma.h>
#include <i2s.h>
#include <soc.h>
#include <clock_control/stm32_clock_control.h>
@@ -23,7 +23,7 @@
#include <kernel.h>
#include <device.h>
#include <init.h>
#include <dma.h>
#include <drivers/dma.h>
#include <i2s.h>
#include <soc.h>

@@ -10,7 +10,7 @@
#include <misc/__assert.h>
#include <soc.h>
#include <uart.h>
#include <dma.h>
#include <drivers/dma.h>

/* Device constant configuration parameters */
struct uart_sam0_dev_cfg {
@@ -13,7 +13,7 @@ LOG_MODULE_REGISTER(spi_sam0);
#include <device.h>
#include <spi.h>
#include <soc.h>
#include <dma.h>
#include <drivers/dma.h>

/* Device constant configuration parameters */
struct spi_sam0_config {

0 comments on commit 46a5d1e

Please sign in to comment.
You can’t perform that action at this time.