Browse Source

drivers: remove redundant <zephyr/zephyr.h> includes

Files including <zephyr/kernel.h> do not have to include
<zephyr/zephyr.h>, a shim to <zephyr/kernel.h>.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
pull/46567/head
Gerard Marull-Paretas 3 years ago committed by Carles Cufí
parent
commit
fd2052d524
  1. 1
      drivers/adc/adc_emul.c
  2. 1
      drivers/adc/adc_lmp90xxx.c
  3. 1
      drivers/adc/adc_mcp320x.c
  4. 1
      drivers/dac/dac_dacx3608.c
  5. 1
      drivers/ieee802154/ieee802154_kw41z.c
  6. 1
      drivers/interrupt_controller/intc_intel_vtd.c
  7. 1
      drivers/interrupt_controller/intc_vexriscv_litex.c
  8. 1
      drivers/modem/quectel-bg9x.h
  9. 1
      drivers/modem/simcom-sim7080.h
  10. 1
      drivers/modem/ublox-sara-r4.c
  11. 1
      drivers/wifi/esp_at/esp.c
  12. 1
      drivers/wifi/esp_at/esp_offload.c
  13. 1
      drivers/wifi/eswifi/eswifi.h
  14. 1
      drivers/wifi/eswifi/eswifi_bus_spi.c
  15. 1
      drivers/wifi/eswifi/eswifi_bus_uart.c
  16. 1
      drivers/wifi/eswifi/eswifi_core.c
  17. 1
      drivers/wifi/eswifi/eswifi_offload.c
  18. 1
      drivers/wifi/eswifi/eswifi_socket.c
  19. 1
      drivers/wifi/eswifi/eswifi_socket_offload.c
  20. 1
      drivers/wifi/simplelink/simplelink.c
  21. 1
      drivers/wifi/winc1500/wifi_winc1500.c

1
drivers/adc/adc_emul.c

@ -18,7 +18,6 @@ @@ -18,7 +18,6 @@
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/zephyr.h>
LOG_MODULE_REGISTER(adc_emul, CONFIG_ADC_LOG_LEVEL);

1
drivers/adc/adc_lmp90xxx.c

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/crc.h>
#include <zephyr/zephyr.h>
#define LOG_LEVEL CONFIG_ADC_LOG_LEVEL
#include <zephyr/logging/log.h>

1
drivers/adc/adc_mcp320x.c

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/zephyr.h>
LOG_MODULE_REGISTER(adc_mcp320x, CONFIG_ADC_LOG_LEVEL);

1
drivers/dac/dac_dacx3608.c

@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/dac.h>

1
drivers/ieee802154/ieee802154_kw41z.c

@ -12,7 +12,6 @@ @@ -12,7 +12,6 @@
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/init.h>

1
drivers/interrupt_controller/intc_intel_vtd.c

@ -15,7 +15,6 @@ @@ -15,7 +15,6 @@
#include <zephyr/init.h>
#include <string.h>
#include <zephyr/zephyr.h>
#include <zephyr/cache.h>

1
drivers/interrupt_controller/intc_vexriscv_litex.c

@ -11,7 +11,6 @@ @@ -11,7 +11,6 @@
#include <zephyr/init.h>
#include <zephyr/irq.h>
#include <zephyr/device.h>
#include <zephyr/zephyr.h>
#include <zephyr/types.h>
#define IRQ_MASK DT_REG_ADDR_BY_NAME(DT_INST(0, vexriscv_intc0), irq_mask)

1
drivers/modem/quectel-bg9x.h

@ -10,7 +10,6 @@ @@ -10,7 +10,6 @@
#include <zephyr/kernel.h>
#include <ctype.h>
#include <errno.h>
#include <zephyr/zephyr.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/device.h>
#include <zephyr/init.h>

1
drivers/modem/simcom-sim7080.h

@ -11,7 +11,6 @@ @@ -11,7 +11,6 @@
#include <ctype.h>
#include <inttypes.h>
#include <errno.h>
#include <zephyr/zephyr.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/modem/simcom-sim7080.h>
#include <zephyr/device.h>

1
drivers/modem/ublox-sara-r4.c

@ -12,7 +12,6 @@ LOG_MODULE_REGISTER(modem_ublox_sara_r4, CONFIG_MODEM_LOG_LEVEL); @@ -12,7 +12,6 @@ LOG_MODULE_REGISTER(modem_ublox_sara_r4, CONFIG_MODEM_LOG_LEVEL);
#include <zephyr/kernel.h>
#include <ctype.h>
#include <errno.h>
#include <zephyr/zephyr.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/device.h>
#include <zephyr/init.h>

1
drivers/wifi/esp_at/esp.c

@ -13,7 +13,6 @@ LOG_MODULE_REGISTER(wifi_esp_at, CONFIG_WIFI_LOG_LEVEL); @@ -13,7 +13,6 @@ LOG_MODULE_REGISTER(wifi_esp_at, CONFIG_WIFI_LOG_LEVEL);
#include <zephyr/kernel.h>
#include <ctype.h>
#include <errno.h>
#include <zephyr/zephyr.h>
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <stdlib.h>

1
drivers/wifi/esp_at/esp_offload.c

@ -8,7 +8,6 @@ @@ -8,7 +8,6 @@
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(wifi_esp_at_offload, CONFIG_WIFI_LOG_LEVEL);
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>

1
drivers/wifi/eswifi/eswifi.h

@ -7,7 +7,6 @@ @@ -7,7 +7,6 @@
#ifndef ZEPHYR_DRIVERS_WIFI_ESWIFI_ESWIFI_H_
#define ZEPHYR_DRIVERS_WIFI_ESWIFI_ESWIFI_H_
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <stdio.h>
#include <zephyr/kernel_structs.h>

1
drivers/wifi/eswifi/eswifi_bus_spi.c

@ -8,7 +8,6 @@ @@ -8,7 +8,6 @@
#include "eswifi_log.h"
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>

1
drivers/wifi/eswifi/eswifi_bus_uart.c

@ -10,7 +10,6 @@ @@ -10,7 +10,6 @@
#include "eswifi_log.h"
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>

1
drivers/wifi/eswifi/eswifi_core.c

@ -13,7 +13,6 @@ @@ -13,7 +13,6 @@
#include "eswifi_log.h"
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>

1
drivers/wifi/eswifi/eswifi_offload.c

@ -7,7 +7,6 @@ @@ -7,7 +7,6 @@
#include "eswifi_log.h"
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>

1
drivers/wifi/eswifi/eswifi_socket.c

@ -7,7 +7,6 @@ @@ -7,7 +7,6 @@
#include "eswifi_log.h"
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>

1
drivers/wifi/eswifi/eswifi_socket_offload.c

@ -7,7 +7,6 @@ @@ -7,7 +7,6 @@
#include "eswifi_log.h"
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <string.h>

1
drivers/wifi/simplelink/simplelink.c

@ -7,7 +7,6 @@ @@ -7,7 +7,6 @@
#include "simplelink_log.h"
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/net/net_if.h>

1
drivers/wifi/winc1500/wifi_winc1500.c

@ -10,7 +10,6 @@ @@ -10,7 +10,6 @@
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include <zephyr/debug/stack.h>
#include <zephyr/device.h>

Loading…
Cancel
Save