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

move can.h to drivers/can.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>
This commit is contained in:
Anas Nashif 2019-06-25 15:53:46 -04:00
commit c0c9396d44
15 changed files with 564 additions and 549 deletions

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <can.h>
#include <drivers/can.h>
#include <kernel.h>
#define LOG_LEVEL CONFIG_CAN_LOG_LEVEL

View file

@ -5,7 +5,7 @@
*/
#include <syscall_handler.h>
#include <can.h>
#include <drivers/can.h>
Z_SYSCALL_HANDLER(can_configure, dev, mode, bitrate) {

View file

@ -7,7 +7,7 @@
#include <string.h>
#include <kernel.h>
#include <stdbool.h>
#include <can.h>
#include <drivers/can.h>
#include "can_loopback.h"
#include <logging/log.h>

View file

@ -8,7 +8,7 @@
#ifndef ZEPHYR_DRIVERS_CAN_LOOPBACK_CAN_H_
#define ZEPHYR_DRIVERS_CAN_LOOPBACK_CAN_H_
#include <can.h>
#include <drivers/can.h>
#define DEV_DATA(dev) ((struct can_loopback_data *const)(dev)->driver_data)
#define DEV_CFG(dev) \

View file

@ -8,7 +8,7 @@
#ifndef _MCP2515_H_
#define _MCP2515_H_
#include <can.h>
#include <drivers/can.h>
#define MCP2515_TX_CNT 3
#define MCP2515_FRAME_LEN 13

View file

@ -6,7 +6,7 @@
#include <zephyr.h>
#include <sys/atomic.h>
#include <can.h>
#include <drivers/can.h>
#include <clock_control.h>
#include <device.h>
#include <misc/byteorder.h>

View file

@ -12,7 +12,7 @@
#include <soc.h>
#include <errno.h>
#include <stdbool.h>
#include <can.h>
#include <drivers/can.h>
#include "can_stm32.h"
#include <logging/log.h>

View file

@ -8,7 +8,7 @@
#ifndef ZEPHYR_DRIVERS_CAN_STM32_CAN_H_
#define ZEPHYR_DRIVERS_CAN_STM32_CAN_H_
#include <can.h>
#include <drivers/can.h>
#define DEV_DATA(dev) ((struct can_stm32_data *const)(dev)->driver_data)
#define DEV_CFG(dev) \