summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorSumeet Pawnikar <sumeet.r.pawnikar@intel.com>2019-04-15 20:18:30 +0530
committerZhang Rui <rui.zhang@intel.com>2019-04-22 16:51:28 +0800
commit1948d498dcf680bc650391f23da2f97e59f9126d (patch)
treef149b7c5eb688d541d11d81f8260c9ac42633b5d /virt
parent6eb61a9361951e466628bcb0abaf0a197181ec97 (diff)
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: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions