From 84540732368327594d591ce5cc455d3d60b4a3fa Mon Sep 17 00:00:00 2001 From: Konstantin Makariev Date: Tue, 24 Mar 2020 13:20:13 -0500 Subject: [PATCH] fixup! (CR) sec_mmi: support holding grip detection Function added in the original commit needs to have a stub when touchscreen class driver is not used to avoid unknown symbol DLKM loading error Mot-CRs-fixed: (CR) Signed-off-by: Konstantin Makariev Change-Id: I1b9891c24a18ec97ac4b171ecfe928b6e6a608de Reviewed-on: https://gerrit.mot.com/1520688 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Konstantin Makariev Submit-Approved: Jira Key --- drivers/input/touchscreen/sec_mmi/sec_mmi.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/sec_mmi/sec_mmi.h b/drivers/input/touchscreen/sec_mmi/sec_mmi.h index ff07243a140b..fff6d0e76ee7 100644 --- a/drivers/input/touchscreen/sec_mmi/sec_mmi.h +++ b/drivers/input/touchscreen/sec_mmi/sec_mmi.h @@ -64,11 +64,15 @@ struct sec_mmi_data { }; int sec_mmi_data_init(struct sec_ts_data *ts, bool enable); -int sec_mmi_sysfs_notify(struct sec_ts_data *ts, unsigned char state); -#ifndef CONFIG_INPUT_TOUCHSCREEN_MMI +#ifdef CONFIG_INPUT_TOUCHSCREEN_MMI +int sec_mmi_sysfs_notify(struct sec_ts_data *ts, unsigned char state); +#else #define DEV_MMI (&data->i2c_client->dev) #define DEV_TS (&ts->client->dev) +static int inline sec_mmi_sysfs_notify(struct sec_ts_data *ts, unsigned char state) { + return -ENOSYS; +} #endif extern struct class *get_touchscreen_class_ptr(void);