Skip to content
Commit 1948d498 authored by Sumeet Pawnikar's avatar Sumeet Pawnikar Committed by Zhang Rui
Browse files

thermal: intel: int340x: processor_thermal_device: simplify to get driver data



This simplifies getting the 'driver_data' from 'struct device' directly.
Going through platform_device or pci_dev is not required. Also removes
condition check as the private data stored with dev pointer, means
irrespective of enumeration mode, we can use dev_get_drvdata().
This removes the unnecessary step back and forth.

Signed-off-by: default avatarSumeet Pawnikar <sumeet.r.pawnikar@intel.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 6eb61a93
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment