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

Commit d96f630c authored by Althaf Neelanchirayil's avatar Althaf Neelanchirayil Committed by Nirmal Abraham
Browse files

fbdev: msm: update event callback function to perform ESD check



Fix the string comparision logic in fb_event_callback so
that the ESD periodic check functionality gets enabled.

Change-Id: Ic6b40f1df5a7b9ce8b588352bcec6ba265f19c30
Signed-off-by: default avatarAlthaf Neelanchirayil <aneelanc@codeaurora.org>
Signed-off-by: default avatarNirmal Abraham <nabrah@codeaurora.org>
parent 05d1e255
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2013-2018, 2020, The Linux Foundation. All rights reserved. */
/* Copyright (c) 2013-2018, 2020-2021, The Linux Foundation. All rights reserved. */

#include <linux/module.h>
#include <linux/kernel.h>
@@ -150,14 +150,16 @@ static int fb_event_callback(struct notifier_block *self,
	struct mdss_dsi_ctrl_pdata *ctrl_pdata = NULL;
	struct mdss_panel_info *pinfo;
	struct msm_fb_data_type *mfd;
	char fb_id[7] = {'\0'};

	if (!evdata) {
		pr_err("%s: event data not available\n", __func__);
		return NOTIFY_BAD;
	}

	strlcpy(fb_id, evdata->info->fix.id, 7);
	/* handle only mdss fb device */
	if (strcmp("mdssfb", evdata->info->fix.id))
	if (strcmp("mdssfb", fb_id))
		return NOTIFY_DONE;

	mfd = evdata->info->par;