Skip to content
Permalink
Browse files

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

move i2s.h to drivers/i2s.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 8f692c7 commit f2e35134b07d8415af8b954328ee04f76c0d1fc8
@@ -5,7 +5,7 @@
*/

#include "mpxxdtyy.h"
#include <i2s.h>
#include <drivers/i2s.h>

#define LOG_LEVEL CONFIG_AUDIO_DMIC_LOG_LEVEL
#include <logging/log.h>
@@ -19,7 +19,7 @@
#include <device.h>
#include <init.h>
#include <drivers/dma.h>
#include <i2s.h>
#include <drivers/i2s.h>
#include <soc.h>
#include "i2s_cavs.h"

@@ -6,7 +6,7 @@

#include <kernel.h>
#include <string.h>
#include <i2s.h>
#include <drivers/i2s.h>

int z_impl_i2s_buf_read(struct device *dev, void *buf, size_t *size)
{
@@ -6,7 +6,7 @@

#include <kernel.h>
#include <syscall_handler.h>
#include <i2s.h>
#include <drivers/i2s.h>


Z_SYSCALL_HANDLER(i2s_configure, dev, dir, cfg_ptr)
@@ -6,7 +6,7 @@

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

#define LOG_DOMAIN dev_i2s_sam_ssc
@@ -14,7 +14,7 @@
#ifndef ZEPHYR_INCLUDE_AUDIO_CODEC_H_
#define ZEPHYR_INCLUDE_AUDIO_CODEC_H_

#include <i2s.h>
#include <drivers/i2s.h>

#ifdef __cplusplus
extern "C" {

0 comments on commit f2e3513

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