]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mfd: sta2x11-mfd: Use named constants for pci_power_t values
authorJulia Lawall <Julia.Lawall@lip6.fr>
Thu, 2 Jan 2014 23:40:29 +0000 (00:40 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 21 Jan 2014 08:29:00 +0000 (08:29 +0000)
If nothing more than to improve code readability.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression pdev;
@@

pci_set_power_state(pdev,
- 0
+ PCI_D0
 )
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sta2x11-mfd.c

index 0d42e40adb98d6edc362d5164a1e65b5de8943bd..5b72db07d9dea274f78af6604420252305205974 100644 (file)
@@ -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;