vt6655/trivial: replace numeric with standard PM state macros
PATCH 4/6 vt6655/trivial: replace numeric with standard PM state macros
Use standard PM state macros PCI_Dx instead of numeric 0/1/2..
Signed-off-by Yijing Wang <[email protected]>
Cc Forest Bond <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Jiri Kosina <[email protected]>
Cc Devendra Naga <[email protected]>
Cc Joe Perches <[email protected]>
Cc Marcos Paulo de Souza <[email protected]>
Cc Bill Pemberton <[email protected]>
--- drivers/staging/vt6655/device_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/vt6655/device_main.c +2 -2
@@ -3370,8 +3370,8 @@ viawget_resume(struct pci_dev *pcid)PSMgmtObject pMgmt = pDevice->pMgmt;int power_status;// to silence the compiler - power_status =pci_set_power_state (pcid,0 ); - power_status =pci_enable_wake (pcid,0 ,0 ); + power_status =pci_set_power_state (pcid,PCI_D0 ); + power_status =pci_enable_wake (pcid,PCI_D0 ,0 );pci_restore_state (pcid);if (netif_running (pDevice->dev)) {spin_lock_irq (&pDevice->lock);
Signature · 1 line
1.7.1
ping...?
Quoted 32 lines · Yijing Wang
Use standard PM state macros
PCI_Dxinstead of numeric 0/1/2..Signed-off-by Yijing Wang <[email protected]>Cc Forest Bond <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Cc Jiri Kosina <[email protected]>Cc Devendra Naga <[email protected]>Cc Joe Perches <[email protected]>Cc Marcos Paulo de Souza <[email protected]>Cc Bill Pemberton <[email protected]>--- drivers/staging/vt6655/device_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)drivers/staging/vt6655/device_main.c +2
-2@@ -3370,8 +3370,8 @@ viawget_resume(struct pci_dev *pcid)PSMgmtObject pMgmt = pDevice->pMgmt;int power_status;// to silence the compiler - power_status =pci_set_power_state (pcid,0 ); - power_status =pci_enable_wake (pcid,0 ,0 ); + power_status =pci_set_power_state (pcid,PCI_D0 ); + power_status =pci_enable_wake (pcid,PCI_D0 ,0 );pci_restore_state (pcid);if (netif_running (pDevice->dev)) {spin_lock_irq (&pDevice->lock);
Signature · 2 lines
Thanks! Yijing
Greg Kroah-Hartman
maintainerQuoted 1 line · Yijing Wang
ping...?
You are asking yourself the status of a patch? Interesting...
Quoted 1 line · Yijing Wang
You sent this after I closed my staging tree, so it will be applied after 3.11-rc1 is out, don't worry, it's not lost.
thanks,
greg k-h
Quoted 9 lines · Greg Kroah-Hartman
Quoted 1 line · Yijing Wang
ping...?
You are asking yourself the status of a patch? Interesting...
Quoted 1 line · Yijing Wang
You sent this after I closed my staging tree, so it will be applied after 3.11-rc1 is out, don't worry, it's not lost.
Hi Greg,
I get it, thanks for your reply.
Thanks!
Yijing.
Quoted 2 lines
.
Signature · 2 lines
Thanks! Yijing