mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 23:21:46 +00:00
PCI PM: consistently use type bool for wake enable variable
Other functions use type bool, so use that for pci_enable_wake as well. Signed-off-by: Frans Pop <elendil@planet.nl> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
f9cde5ffed
commit
7d9a73f6dc
2 changed files with 2 additions and 2 deletions
|
@ -1205,7 +1205,7 @@ void pci_pme_active(struct pci_dev *dev, bool enable)
|
||||||
* Error code depending on the platform is returned if both the platform and
|
* Error code depending on the platform is returned if both the platform and
|
||||||
* the native mechanism fail to enable the generation of wake-up events
|
* the native mechanism fail to enable the generation of wake-up events
|
||||||
*/
|
*/
|
||||||
int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable)
|
int pci_enable_wake(struct pci_dev *dev, pci_power_t state, bool enable)
|
||||||
{
|
{
|
||||||
int error = 0;
|
int error = 0;
|
||||||
bool pme_done = false;
|
bool pme_done = false;
|
||||||
|
|
|
@ -723,7 +723,7 @@ int pci_set_power_state(struct pci_dev *dev, pci_power_t state);
|
||||||
pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state);
|
pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state);
|
||||||
bool pci_pme_capable(struct pci_dev *dev, pci_power_t state);
|
bool pci_pme_capable(struct pci_dev *dev, pci_power_t state);
|
||||||
void pci_pme_active(struct pci_dev *dev, bool enable);
|
void pci_pme_active(struct pci_dev *dev, bool enable);
|
||||||
int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable);
|
int pci_enable_wake(struct pci_dev *dev, pci_power_t state, bool enable);
|
||||||
int pci_wake_from_d3(struct pci_dev *dev, bool enable);
|
int pci_wake_from_d3(struct pci_dev *dev, bool enable);
|
||||||
pci_power_t pci_target_state(struct pci_dev *dev);
|
pci_power_t pci_target_state(struct pci_dev *dev);
|
||||||
int pci_prepare_to_sleep(struct pci_dev *dev);
|
int pci_prepare_to_sleep(struct pci_dev *dev);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue