input: ets_fps_mmi: Remove debuglog in user build

Only enable debug log in userdebug build.
If build user SW, remove those debug logs.

Change-Id: I2838ebc6bf34bf173bbf3f9367d15e8252247c73
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1266491
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
haojl2 2018-11-08 18:13:13 +08:00 • committed by Jianqi Yang
commit 717c53ac09
2 changed files with 4 additions and 3 deletions

View file

@ -11,6 +11,10 @@ ifneq ($(filter m y,$(CONFIG_INPUT_EGISTEC_FPS_NAVI_VERTICAL)),)
EXTRA_CFLAGS += -DCONFIG_INPUT_EGISTEC_FPS_NAVI_VERTICAL
endif
ifeq ($(TARGET_BUILD_VARIANT),userdebug)
EXTRA_CFLAGS += -DFP_SPI_DEBUG
endif
ets_fps_mmi-y += ets_fps.o ets_navi_input.o
obj-m += ets_fps_mmi.o

View file

@ -26,9 +26,6 @@
#include <linux/spi/spi.h>
/*#define FP_SPI_DEBUG*/
#define FP_SPI_DEBUG
#ifdef FP_SPI_DEBUG
#define DEBUG_PRINT(fmt, args...) pr_err(fmt, ## args)
#else