RE: [PATCH v2 11/15] scsi: hpsa: use generic power management

From: Don.Brace
Date: Mon Jul 20 2020 - 18:23:17 EST


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.

Change function parameter in both .suspend() and .resume() to "struct device*" type. The function body remains unchanged as it was empty.
Also, bind callbacks with "static const struct dev_pm_ops" variable.

Compile-tested only.

Signed-off-by: Vaibhav Gupta <vaibhavgupta40@xxxxxxxxx>

Acked-by: Don Brace <don.brace@xxxxxxxxxxxxx>
Compile-tested: no compile/sparse issues found.
Tested-by: Don Brace <don.brace@xxxxxxxxxxxxx>
(for hpsa driver)