From a745460a6f3b9a9430044af17233357bd6964b59 Mon Sep 17 00:00:00 2001 From: litong20 Date: Fri, 22 Oct 2021 16:18:57 +0800 Subject: [PATCH] touchscreen_mmi: Support refresh reate notification in Rogue 1. dsi_freq_head is undefined, so add Module.symvers of display driver. 2. Use the KBUILD_OPTIONS to pass the configuration parameters to the Kbuild filed. Change-Id: I24d792a26cb1d3a9f8beca8089cea7116ae1a669 Reviewed-on: https://gerrit.mot.com/2097103 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- drivers/input/touchscreen/touchscreen_mmi/Android.mk | 2 +- drivers/input/touchscreen/touchscreen_mmi/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/touchscreen_mmi/Android.mk b/drivers/input/touchscreen/touchscreen_mmi/Android.mk index a5938acefa6a..c01eb47d9015 100644 --- a/drivers/input/touchscreen/touchscreen_mmi/Android.mk +++ b/drivers/input/touchscreen/touchscreen_mmi/Android.mk @@ -2,7 +2,7 @@ DLKM_DIR := motorola/kernel/modules LOCAL_PATH := $(call my-dir) ifeq ($(DRM_DYNAMIC_REFRESH_RATE),true) - KERNEL_CFLAGS += CONFIG_DRM_DYNAMIC_REFRESH_RATE=y + KBUILD_OPTIONS += CONFIG_DRM_DYNAMIC_REFRESH_RATE=y endif ifeq ($(TOUCHCLASS_MMI_DEBUG_INFO),true) diff --git a/drivers/input/touchscreen/touchscreen_mmi/Makefile b/drivers/input/touchscreen/touchscreen_mmi/Makefile index 674b1b2ffbf0..23e3c4f27831 100644 --- a/drivers/input/touchscreen/touchscreen_mmi/Makefile +++ b/drivers/input/touchscreen/touchscreen_mmi/Makefile @@ -11,3 +11,4 @@ modules_install: KBUILD_EXTRA_SYMBOLS += $(M)/../../../sensors/Module.symvers KBUILD_EXTRA_SYMBOLS += $(M)/../../../mmi_relay/Module.symvers +KBUILD_EXTRA_SYMBOLS += $(OUT_DIR)/../../vendor/qcom/opensource/display-drivers/msm/Module.symvers