diff --git a/drivers/input/touchscreen/nova_0flash_mmi/Kbuild b/drivers/input/touchscreen/nova_0flash_mmi/Kbuild index b47c067739a8..d3938c9e5113 100644 --- a/drivers/input/touchscreen/nova_0flash_mmi/Kbuild +++ b/drivers/input/touchscreen/nova_0flash_mmi/Kbuild @@ -26,6 +26,10 @@ ifneq ($(filter m y,$(CONFIG_INPUT_NOVA_DRM_PANEL)),) EXTRA_CFLAGS += -DNVT_CONFIG_DRM_PANEL endif +ifeq ($(TARGET_BUILD_VARIANT),user) + EXTRA_CFLAGS += -DCFG_CTS_FOR_GKI +endif + ifneq ($(filter m y,$(CONFIG_TOUCH_PANEL_NOTIFICATIONS)),) EXTRA_CFLAGS += -DCONFIG_PANEL_NOTIFICATIONS endif diff --git a/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx_mp_ctrlram.c b/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx_mp_ctrlram.c index dec93cb73e94..519f4ecdb2df 100644 --- a/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx_mp_ctrlram.c +++ b/drivers/input/touchscreen/nova_0flash_mmi/nt36xxx_mp_ctrlram.c @@ -373,6 +373,7 @@ static void nvt_print_criteria(void) static int32_t nvt_save_rawdata_to_csv(int32_t *rawdata, uint8_t x_ch, uint8_t y_ch, const char *file_path, uint32_t offset) { +#ifndef CFG_CTS_FOR_GKI int32_t x = 0; int32_t y = 0; int32_t iArrayIndex = 0; @@ -479,7 +480,7 @@ static int32_t nvt_save_rawdata_to_csv(int32_t *rawdata, uint8_t x_ch, uint8_t y } printk("%s:--\n", __func__); - +#endif return 0; }