drivers: can: mcan: remove unused includes

Remove unused includes and sort the remaining includes alphabetically.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2023-04-24 22:27:48 +02:00 committed by Stephanos Ioannidis
commit 522f87edf6
3 changed files with 3 additions and 9 deletions

View file

@ -5,13 +5,12 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/sys/util.h>
#include <string.h>
#include <zephyr/cache.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/can.h>
#include <zephyr/drivers/can/transceiver.h>
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include "can_mcan.h"
#include "can_mcan_priv.h"

View file

@ -8,12 +8,9 @@
#ifndef ZEPHYR_DRIVERS_CAN_MCAN_H_
#define ZEPHYR_DRIVERS_CAN_MCAN_H_
#include <zephyr/kernel.h>
#include <zephyr/devicetree.h>
#include <zephyr/drivers/can.h>
#include <zephyr/toolchain.h>
#include <stdint.h>
#include <zephyr/kernel.h>
#ifdef CONFIG_CAN_MCUX_MCAN
#define MCAN_DT_PATH DT_NODELABEL(can0)

View file

@ -8,8 +8,6 @@
#ifndef ZEPHYR_DRIVERS_CAN_CAN_MCAN_PRIV_H_
#define ZEPHYR_DRIVERS_CAN_CAN_MCAN_PRIV_H_
#include <zephyr/drivers/can.h>
/*
* Register Masks are taken from the stm32cube library and extended for
* full M_CAN IPs