Commit 145b11d1 authored by Ravi Chandra Sadineni's avatar Ravi Chandra Sadineni Committed by Dmitry Torokhov
Browse files

Input: elan_i2c - increment wakeup count if wake source



Notify the PM core that this device is the wake source. This helps
userspace daemon tracking the wake sources to identify the origin of the
wake.

Signed-off-by: default avatarRavi Chandra Sadineni <ravisadineni@chromium.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 14e0c731
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -981,6 +981,8 @@ static irqreturn_t elan_isr(int irq, void *dev_id)
	if (error)
		goto out;

	pm_wakeup_event(dev, 0);

	switch (report[ETP_REPORT_ID_OFFSET]) {
	case ETP_REPORT_ID:
		elan_report_absolute(data, report);