mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
cnss: Add support for building CNSS as a loadable module
Add support for building CNSS as a loadable module. When CONFIG_CNSS=m is specified, CONFIG_CNSS_MODULE will be defined instead of CONFIG_CNSS. Change-Id: I367c2321836d124d30f08dae14bbe763acaf6c03 Signed-off-by: Wu Gao <quic_wugao@quicinc.com>
This commit is contained in:
parent
1227bcf0b1
commit
8a31fb44f3
2 changed files with 6 additions and 6 deletions
|
|
@ -3,7 +3,9 @@
|
|||
# Makefile for CNSS platform driver
|
||||
#
|
||||
|
||||
obj-$(CONFIG_CNSS_PCI) += cnss_pci.o
|
||||
obj-$(CONFIG_CNSS_SDIO) += cnss_sdio.o
|
||||
obj-$(CONFIG_CNSS) += cnss_common.o
|
||||
obj-$(CONFIG_CNSS_LOGGER) += logger/
|
||||
obj-$(CONFIG_CNSS) += cnss.o
|
||||
|
||||
cnss-$(CONFIG_CNSS_PCI) += cnss_pci.o
|
||||
cnss-$(CONFIG_CNSS_SDIO) += cnss_sdio.o
|
||||
cnss-y += cnss_common.o
|
||||
obj-$(CONFIG_CNSS_LOGGER) += logger/
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
#include <linux/mmc/sdio_func.h>
|
||||
#include <linux/interrupt.h>
|
||||
|
||||
#ifdef CONFIG_CNSS
|
||||
#define MAX_FIRMWARE_SIZE (1 * 1024 * 1024)
|
||||
#define CNSS_MAX_FILE_NAME 20
|
||||
#define PINCTRL_SLEEP 0
|
||||
|
|
@ -177,7 +176,6 @@ int cnss_pm_runtime_request(struct device *dev, enum
|
|||
cnss_runtime_request request);
|
||||
void cnss_set_cc_source(enum cnss_cc_src cc_source);
|
||||
enum cnss_cc_src cnss_get_cc_source(void);
|
||||
#endif
|
||||
|
||||
void cnss_pm_wake_lock_init(struct wakeup_source **ws, const char *name);
|
||||
void cnss_pm_wake_lock(struct wakeup_source *ws);
|
||||
|
|
|
|||
Loading…
Reference in a new issue