From 4869b05bb7cb34db6f6ca23e800a0234583ce662 Mon Sep 17 00:00:00 2001 From: Kever Yang Date: Thu, 16 Jul 2020 17:57:19 +0800 Subject: [PATCH] input: touchscreen: Support gsl3673 build as modular Signed-off-by: Kever Yang Change-Id: I530763b02bb2e1818ade3571e5984d9dce642648 --- drivers/input/touchscreen/Makefile | 3 ++- drivers/input/touchscreen/gsl3673.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/Makefile b/drivers/input/touchscreen/Makefile index e81c6c8b3dcd..8cb702c2cad1 100644 --- a/drivers/input/touchscreen/Makefile +++ b/drivers/input/touchscreen/Makefile @@ -51,7 +51,8 @@ obj-$(CONFIG_TOUCHSCREEN_GSLX680_D708) += gslx680_d708/ gsl_point_id.o obj-$(CONFIG_TOUCHSCREEN_GSLX680_PAD) += gslx680_pad.o gsl_point_id.o obj-$(CONFIG_TOUCHSCREEN_GSLX680_VR) += gslx680.o gsl_point_id.o obj-$(CONFIG_TOUCHSCREEN_GSLX680_FIREFLY) += gslx680_firefly.o gsl_point_id.o -obj-$(CONFIG_TOUCHSCREEN_GSL3673) += gsl3673.o gsl_point_id.o +obj-$(CONFIG_TOUCHSCREEN_GSL3673) += gsl3673-ts.o +gsl3673-ts-y := gsl3673.o gsl_point_id.o obj-$(CONFIG_TOUCHSCREEN_GSL3673_800X1280) += gsl3673_800x1280.o gsl_point_id.o obj-$(CONFIG_TOUCHSCREEN_GSL3676) += gsl3676/ obj-$(CONFIG_TOUCHSCREEN_GT9XX) += gt9xx/ diff --git a/drivers/input/touchscreen/gsl3673.c b/drivers/input/touchscreen/gsl3673.c index df2942c90776..c5ccb635f58c 100644 --- a/drivers/input/touchscreen/gsl3673.c +++ b/drivers/input/touchscreen/gsl3673.c @@ -59,7 +59,7 @@ static char chip_type; #include "gsl3680_tab106.h" #define TP_SIZE_1366X768 #define Y_POL -#elif defined(CONFIG_TOUCHSCREEN_GSL3673) +#elif IS_ENABLED(CONFIG_TOUCHSCREEN_GSL3673) #include "gsl3673.h" #else #include "gsl3680b_zm97f.h"