summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sprd_serial.c
diff options
context:
space:
mode:
authorSumeet Pawnikar <sumeet.r.pawnikar@intel.com>2019-04-15 16:48:30 +0200
committerZhang Rui <rui.zhang@intel.com>2019-04-22 10:51:28 +0200
commit1948d498dcf680bc650391f23da2f97e59f9126d (patch)
treef149b7c5eb688d541d11d81f8260c9ac42633b5d /drivers/tty/serial/sprd_serial.c
parentthermal/int3403_thermal: favor _TMP instead of PTYP (diff)
downloadlinux-1948d498dcf680bc650391f23da2f97e59f9126d.tar.xz
linux-1948d498dcf680bc650391f23da2f97e59f9126d.zip
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 'drivers/tty/serial/sprd_serial.c')
0 files changed, 0 insertions, 0 deletions