summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-lantiq-ssc.c
diff options
context:
space:
mode:
authorVaibhav Gupta <vaibhavgupta40@gmail.com>2020-07-20 17:57:15 +0200
committerMark Brown <broonie@kernel.org>2020-07-22 02:55:52 +0200
commitf185bcc779808df5d31bc332b79b5f1455ee910b (patch)
treea2bea23262013c21f6cef1d10cf75c14eaca2330 /drivers/spi/spi-lantiq-ssc.c
parentspi: ppc4xx: Convert to use GPIO descriptors (diff)
downloadlinux-f185bcc779808df5d31bc332b79b5f1455ee910b.tar.xz
linux-f185bcc779808df5d31bc332b79b5f1455ee910b.zip
spi: spi-topcliff-pch: use generic power management
Drivers using legacy PM have to manage PCI states and device's PM states themselves. They also need to take care of configuration registers. With improved and powerful support of generic PM, PCI Core takes care of above mentioned, device-independent, jobs. This driver makes use of PCI helper functions like pci_save/restore_state(), pci_enable/disable_device(), pci_enable_wake() and pci_set_power_state() to do required operations. In generic mode, they are no longer needed. Change function parameter in both .suspend() and .resume() to "struct device*" type. Use dev_get_drvdata() to get drv data. Compile-tested only. Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com> Link: https://lore.kernel.org/r/20200720155714.714114-1-vaibhavgupta40@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-lantiq-ssc.c')
0 files changed, 0 insertions, 0 deletions