diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-01-02 18:40:29 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-01-21 03:29:00 -0500 |
commit | 4d1d99807ae6a291faf3ac0732257a56d93598ed (patch) | |
tree | d970238dd9f97c91d80e8a6252f29b4248393301 /drivers/mfd | |
parent | 94100e7b5ef80d6b41343fa7ad7a6836023d83e2 (diff) |
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/)
// <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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/sta2x11-mfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
529 | { | 529 | { |
530 | int err; | 530 | int err; |
531 | 531 | ||
532 | pci_set_power_state(pdev, 0); | 532 | pci_set_power_state(pdev, PCI_D0); |
533 | err = pci_enable_device(pdev); | 533 | err = pci_enable_device(pdev); |
534 | if (err) | 534 | if (err) |
535 | return err; | 535 | return err; |