thermal: intel: Use dev_get_drvdata
authorChuhong Yuan <hslester96@gmail.com>
Wed, 24 Jul 2019 12:23:37 +0000 (20:23 +0800)
committerZhang Rui <rui.zhang@intel.com>
Tue, 24 Sep 2019 01:55:51 +0000 (09:55 +0800)
commit97e9cafe85a9111fd72cefb18cfc9f2e0b6f85f1
treeffb55e3b88f622ada8caa8ade7c09eea91ccbf53
parent4c8a342c118ae5f09a1729efdfcc42d8f4485bd7
thermal: intel: Use dev_get_drvdata

Instead of using to_pci_dev + pci_get_drvdata,
use dev_get_drvdata to make code simpler.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/intel/intel_pch_thermal.c