Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb214351 authored by Fei's avatar Fei Committed by Fei Mao
Browse files

input: touchscreen: cyttsp5: more FB event notifier



Support more FB event notifier callback, so wake the device in
DOZE mode, too.

Change-Id: Ic767a442a593932b61f5b0db4695e452a9b8d72c
Signed-off-by: default avatarFei <feim1@codeaurora.org>
parent 409330d3
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -5995,7 +5995,9 @@ static int fb_notifier_callback(struct notifier_block *self,
		goto exit;

	blank = evdata->data;
	if (*blank == FB_BLANK_UNBLANK) {

	switch (*blank) {
	case FB_BLANK_UNBLANK:
		dev_dbg(cd->dev, "%s: UNBLANK!\n", __func__);
		if (cd->fb_state != FB_ON) {
			#ifdef USE_FB_SUSPEND_RESUME
@@ -6005,7 +6007,12 @@ static int fb_notifier_callback(struct notifier_block *self,
			call_atten_cb(cd, CY_ATTEN_RESUME, 0);
			cd->fb_state = FB_ON;
		}
	} else if (*blank == FB_BLANK_POWERDOWN) {
		break;

	case FB_BLANK_POWERDOWN:
	case FB_BLANK_HSYNC_SUSPEND:
	case FB_BLANK_VSYNC_SUSPEND:
	case FB_BLANK_NORMAL:
		dev_dbg(cd->dev, "%s: POWERDOWN!\n", __func__);
		if (cd->fb_state != FB_OFF) {
			#ifdef USE_FB_SUSPEND_RESUME
@@ -6014,6 +6021,9 @@ static int fb_notifier_callback(struct notifier_block *self,
			call_atten_cb(cd, CY_ATTEN_SUSPEND, 0);
			cd->fb_state = FB_OFF;
		}
		break;
	default:
		break;
	}

exit: