Skip to content
Permalink
Browse files

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

move adc.h to drivers/adc.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 d4d2067 commit f4709f2c2f18bf3f7c7b9c8b89f6c6f3716a13d5
@@ -8,7 +8,7 @@
#ifndef ZEPHYR_DRIVERS_ADC_ADC_CONTEXT_H_
#define ZEPHYR_DRIVERS_ADC_ADC_CONTEXT_H_

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

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

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

@@ -19,7 +19,7 @@
#include <string.h>
#include <stdlib.h>
#include <soc.h>
#include <adc.h>
#include <drivers/adc.h>
#include <arch/cpu.h>
#include <misc/util.h>

@@ -13,7 +13,7 @@
#define ZEPHYR_DRIVERS_ADC_ADC_INTEL_QUARK_SE_C1000_SS_H_

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

#ifdef __cplusplus
extern "C" {
@@ -7,7 +7,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

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

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
@@ -5,7 +5,7 @@
*/

#include <errno.h>
#include <adc.h>
#include <drivers/adc.h>
#include <fsl_adc16.h>

#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
@@ -6,7 +6,7 @@


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

#include <logging/log.h>
LOG_MODULE_REGISTER(adc_sam0, CONFIG_ADC_LOG_LEVEL);
@@ -18,7 +18,7 @@
#include <device.h>
#include <init.h>
#include <soc.h>
#include <adc.h>
#include <drivers/adc.h>

#define ADC_CONTEXT_USES_KERNEL_TIMER
#include "adc_context.h"
@@ -8,7 +8,7 @@

#include <errno.h>

#include <adc.h>
#include <drivers/adc.h>
#include <device.h>
#include <kernel.h>
#include <init.h>
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <adc.h>
#include <drivers/adc.h>
#include <device.h>
#include <math.h>
#include <sensor.h>
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <adc.h>
#include <drivers/adc.h>
#include <device.h>
#include <math.h>
#include <sensor.h>

0 comments on commit f4709f2

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