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

Commit 291d6946 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: touchscreen: hxchipset: add drm early event support"

parents 2f14b84a 27d1bc76
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -726,13 +726,10 @@ int drm_notifier_callback(struct notifier_block *self,

	D("DRM  %s\n", __func__);

	if (evdata->data && event == MSM_DRM_EVENT_BLANK && ts && ts->client) {
	if (evdata->data && event == MSM_DRM_EARLY_EVENT_BLANK && ts &&
							ts->client) {
		blank = evdata->data;

		switch (*blank) {
		case MSM_DRM_BLANK_UNBLANK:
			himax_common_resume(&ts->client->dev);
			break;
		case MSM_DRM_BLANK_POWERDOWN:
			if (!ts->initialized)
				return -ECANCELED;
@@ -741,6 +738,15 @@ int drm_notifier_callback(struct notifier_block *self,
		}
	}

	if (evdata->data && event == MSM_DRM_EVENT_BLANK && ts && ts->client) {
		blank = evdata->data;
		switch (*blank) {
		case MSM_DRM_BLANK_UNBLANK:
			himax_common_resume(&ts->client->dev);
			break;
		}
	}

	return 0;
}