driver: wifi: eswifi: use common log module
use common log module across all eswifi sources, which allows to compile with CONFIG_NET_SOCKETS_OFFLOAD. Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
This commit is contained in:
parent
3f6ac9fdfd
commit
1cb20aee34
6 changed files with 25 additions and 12 deletions
|
@ -5,9 +5,8 @@
|
|||
*/
|
||||
|
||||
#define DT_DRV_COMPAT inventek_eswifi
|
||||
#define LOG_LEVEL CONFIG_WIFI_LOG_LEVEL
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(wifi_eswifi_bus_spi);
|
||||
#include "eswifi_log.h"
|
||||
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <kernel.h>
|
||||
|
|
|
@ -5,9 +5,8 @@
|
|||
*/
|
||||
|
||||
#define DT_DRV_COMPAT inventek_eswifi
|
||||
#define LOG_LEVEL CONFIG_WIFI_LOG_LEVEL
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(wifi_eswifi_core);
|
||||
#include "eswifi_log.h"
|
||||
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <kernel.h>
|
||||
|
|
15
drivers/wifi/eswifi/eswifi_log.h
Normal file
15
drivers/wifi/eswifi/eswifi_log.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* Copyright (c) 2020 Linumiz
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ZEPHYR_DRIVERS_WIFI_ESWIFI_ESWIFI_LOG_H_
|
||||
#define ZEPHYR_DRIVERS_WIFI_ESWIFI_ESWIFI_LOG_H_
|
||||
|
||||
#define LOG_MODULE_NAME wifi_eswifi
|
||||
#define LOG_LEVEL CONFIG_WIFI_LOG_LEVEL
|
||||
|
||||
#include <logging/log.h>
|
||||
|
||||
#endif /* ZEPHYR_DRIVERS_WIFI_ESWIFI_ESWIFI_LOG_H_ */
|
|
@ -4,8 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#define LOG_LEVEL CONFIG_WIFI_LOG_LEVEL
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(wifi_eswifi_offload);
|
||||
#include "eswifi_log.h"
|
||||
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <kernel.h>
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(wifi_eswifi, CONFIG_WIFI_LOG_LEVEL);
|
||||
#include "eswifi_log.h"
|
||||
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <kernel.h>
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(wifi_eswifi, CONFIG_WIFI_LOG_LEVEL);
|
||||
#include "eswifi_log.h"
|
||||
LOG_MODULE_DECLARE(LOG_MODULE_NAME);
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <kernel.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue