From 0e96cc419915bc1bca3da25e922fd2be162c7d8d Mon Sep 17 00:00:00 2001 From: Ajay Prathi Date: Wed, 12 Feb 2020 17:21:00 +0530 Subject: [PATCH] msm: tsens: Add code to support thermal framework changes Add code to update dev value in tsens struct which will be compared in thermal framework to check whether the device pointer is matching with thermal zone or not. Change-Id: Ic7605034e48585bcb25641306c1703b8399b4e0e Signed-off-by: Ajay Prathi --- drivers/thermal/msm-tsens.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thermal/msm-tsens.c b/drivers/thermal/msm-tsens.c index 932c18fd4464..8bb109fb3226 100644 --- a/drivers/thermal/msm-tsens.c +++ b/drivers/thermal/msm-tsens.c @@ -136,6 +136,7 @@ static int get_device_tree_data(struct platform_device *pdev, tmdev->ops = data->ops; tmdev->ctrl_data = data; tmdev->pdev = pdev; + tmdev->dev = &pdev->dev; if (!tmdev->ops || !tmdev->ops->hw_init || !tmdev->ops->get_temp) { pr_err("Invalid ops\n");