summaryrefslogtreecommitdiff
path: root/drivers/net/can/usb/peak_usb/pcan_usb.c
diff options
context:
space:
mode:
authorVaibhav Gupta <vaibhavgupta40@gmail.com>2020-07-28 14:27:57 +0530
committerMarc Kleine-Budde <mkl@pengutronix.de>2020-09-21 10:13:18 +0200
commit306df0b00b90c5786ca3c6310f4008bebd9fc6da (patch)
tree9e6a4db739835eba687add375e18aa33edc4e69b /drivers/net/can/usb/peak_usb/pcan_usb.c
parentb060585d92cb0fe9c4f29ea412ea6b3da3ab136b (diff)
can: pch_can: use generic power management
Drivers using legacy power management .suspen()/.resume() callbacks have to manage PCI states and device's PM states themselves. They also need to take care of standard configuration registers. Switch to generic power management framework using a single "struct dev_pm_ops" variable to take the unnecessary load from the driver. This also avoids the need for the driver to directly call most of the PCI helper functions and device power state control functions, as through the generic framework PCI Core takes care of the necessary operations, and drivers are required to do only device-specific jobs. Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com> Link: https://lore.kernel.org/r/20200728085757.888620-1-vaibhavgupta40@gmail.com Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/usb/peak_usb/pcan_usb.c')
0 files changed, 0 insertions, 0 deletions