mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
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:
parent
3bdb50e53a
commit
0e96cc4199
1 changed files with 1 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue