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 <aprathi@codeaurora.org>
This commit is contained in:
Ajay Prathi 2020-02-12 17:21:00 +05:30
commit 0e96cc4199

View file

@ -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");