Commit 4d1d9980 authored by Julia Lawall's avatar Julia Lawall Committed by Lee Jones
Browse files

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:


// <smpl>
expression pdev;

- 0
+ PCI_D0
// </smpl>
Signed-off-by: default avatarJulia Lawall <>
Signed-off-by: default avatarLee Jones <>
parent 94100e7b
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment