From: Piotr Gregor Date: Wed, 2 Aug 2017 19:42:18 +0000 (+0100) Subject: PCI/PM: Expand description of pci_set_power_state() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ab4b8a47abeefad94cdb6b4c0df6a13f4f6ae4e0;p=linux.git PCI/PM: Expand description of pci_set_power_state() Add two reasons for returning 0 value to the description of pci_set_power_state() to include the cases when: - the transition is to D1 or D2 but D1 and D2 are not supported - the transition is to D3 but D3 is not supported Signed-off-by: Piotr Gregor Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index af0cc3456dc1b..9528781db4d38 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -892,7 +892,9 @@ EXPORT_SYMBOL_GPL(__pci_complete_power_transition); * -EINVAL if the requested state is invalid. * -EIO if device does not support PCI PM or its PM capabilities register has a * wrong version, or device doesn't support the requested state. + * 0 if the transition is to D1 or D2 but D1 and D2 are not supported. * 0 if device already is in the requested state. + * 0 if the transition is to D3 but D3 is not supported. * 0 if device's power state has been successfully changed. */ int pci_set_power_state(struct pci_dev *dev, pci_power_t state)