summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media
diff options
context:
space:
mode:
authorVaibhav Gupta <vaibhavgupta40@gmail.com>2020-07-28 12:24:18 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-11-27 14:11:26 +0100
commita3f132df0e5f25399c9592c2d14997975ddbf290 (patch)
tree45beff45f50bb9bf4e99ca745d0177f769b7a782 /drivers/staging/media
parentacc4c91ebbfb29bad4a55b923175170b297ff431 (diff)
media: bttv: 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> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/staging/media')
0 files changed, 0 insertions, 0 deletions