mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
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:
parent
8d4593af7b
commit
8454073236
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue