fixup! (CR) stmicro_mmi: bug fixes and new features

Fixing up leftovers

Mot-CRs-fixed: (CR)

Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Change-Id: I559bd6ec3595eec0168af4efaa0743ef2160463a
Reviewed-on: https://gerrit.mot.com/1902234
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Konstantin Makariev 2021-03-15 21:11:11 -05:00 • committed by Konstantin Makariev
commit 4060c33bf0

View file

@ -880,7 +880,7 @@ int writeConfig(u16 offset, u8 *data, int len)
*/
int fts_disableInterrupt(void)
{
//unsigned long flag;
unsigned long flag;
if (getClient() != NULL) {
spin_lock_irqsave(&fts_int, flag);
@ -916,9 +916,7 @@ int fts_disableInterruptNoSync(void)
}
/* disable_irq is re-entrant so it is required to keep track
* of the number of calls of this when reenabling */
spin_unlock(&fts_int);
//logError(0, "%s Interrupt No Sync Disabled!\n", tag);
return OK;
} else {
logError(1, "%s %s: Impossible get client irq... ERROR %08X\n",
@ -960,9 +958,7 @@ int fts_enableInterrupt(void)
enable_irq(getClient()->irq);
disable_irq_count--;
}
spin_unlock_irqrestore(&fts_int, flag);
//logError(0, "%s Interrupt Enabled!\n", tag);
return OK;
} else {
logError(1, "%s %s: Impossible get client irq... ERROR %08X\n",