Merge "net: cnss2: Build generic netlink support by default"

This commit is contained in:
qctecmdr 2020-01-24 17:58:36 -08:00 • committed by Gerrit - the friendly Code Review server
commit b1c328c697
2 changed files with 2 additions and 19 deletions

View file

@ -7,5 +7,5 @@ cnss2-y += bus.o
cnss2-y += debug.o
cnss2-y += pci.o
cnss2-y += power.o
cnss2-$(CONFIG_CNSS2_DEBUG) += genl.o
cnss2-y += genl.o
cnss2-$(CONFIG_CNSS2_QMI) += qmi.o wlan_firmware_service_v01.o coexistence_service_v01.o ip_multimedia_subsystem_private_service_v01.o

View file

@ -1,5 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2019, The Linux Foundation. All rights reserved. */
/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. */
#ifndef __CNSS_GENL_H__
#define __CNSS_GENL_H__
@ -9,26 +9,9 @@ enum cnss_genl_msg_type {
CNSS_GENL_MSG_TYPE_QDSS,
};
#ifdef CONFIG_CNSS2_DEBUG
int cnss_genl_init(void);
void cnss_genl_exit(void);
int cnss_genl_send_msg(void *buff, u8 type,
char *file_name, u32 total_size);
#else
static inline int cnss_genl_init(void)
{
return 0;
}
static inline void cnss_genl_exit(void)
{
}
static inline int cnss_genl_send_msg(void *buff, u8 type,
char *file_name, u32 total_size)
{
return 0;
}
#endif
#endif