From 4d1d99807ae6a291faf3ac0732257a56d93598ed Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Fri, 3 Jan 2014 00:40:29 +0100 Subject: mfd: sta2x11-mfd: Use named constants for pci_power_t values If nothing more than to improve code readability. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression pdev; @@ pci_set_power_state(pdev, - 0 + PCI_D0 ) // Signed-off-by: Julia Lawall Signed-off-by: Lee Jones --- drivers/mfd/sta2x11-mfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/mfd/sta2x11-mfd.c') diff --git a/drivers/mfd/sta2x11-mfd.c b/drivers/mfd/sta2x11-mfd.c index 0d42e40adb98..5b72db07d9de 100644 --- a/drivers/mfd/sta2x11-mfd.c +++ b/drivers/mfd/sta2x11-mfd.c @@ -529,7 +529,7 @@ static int sta2x11_mfd_resume(struct pci_dev *pdev) { int err; - pci_set_power_state(pdev, 0); + pci_set_power_state(pdev, PCI_D0); err = pci_enable_device(pdev); if (err) return err; -- cgit v1.2.3