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 <hcv867@motorola.com>
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 <kmakariev@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Konstantin Makariev 2020-03-24 13:20:13 -05:00 • committed by Konstantin Makariev
commit 8454073236

View file

@ -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);