Commit 4d1d99807ae6a291faf3ac0732257a56d93598ed

Authored by Julia Lawall
Committed by Lee Jones
1 parent 94100e7b5e

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/mfd/sta2x11-mfd.c
... ... @@ -529,7 +529,7 @@
529 529 {
530 530 int err;
531 531  
532   - pci_set_power_state(pdev, 0);
  532 + pci_set_power_state(pdev, PCI_D0);
533 533 err = pci_enable_device(pdev);
534 534 if (err)
535 535 return err;