Docs/zh_CN: Update the translation of pci-iov-howto to 5.19-rc8
authorYanteng Si <siyanteng@loongson.cn>
Thu, 28 Jul 2022 05:08:10 +0000 (13:08 +0800)
committerJonathan Corbet <corbet@lwn.net>
Thu, 28 Jul 2022 15:37:25 +0000 (09:37 -0600)
Update to commit 4f23bd5d09af ("PCI/doc: Convert
examples to generic power management")

Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
Reviewed-by: Alex Shi <alexs@kernel.org>
Link: https://lore.kernel.org/r/24c53aabc9d942f6fe38b8d3a843329edca3d18c.1658983157.git.siyanteng@loongson.cn
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/translations/zh_CN/PCI/pci-iov-howto.rst

index fbc83dfdcead0c4f4236524ba291f60d2798bfd0..fb023ea1374d7b8a604687363e1f8cbcb730c172 100644 (file)
@@ -123,14 +123,14 @@ nr_virtfn'是要启用的VF的编号。
                ...
        }
 
-       static int dev_suspend(struct pci_dev *dev, pm_message_t state)
+       static int dev_suspend(struct device *dev)
        {
                ...
 
                return 0;
        }
 
-       static int dev_resume(struct pci_dev *dev)
+       static int dev_resume(struct device *dev)
        {
                ...
 
@@ -163,8 +163,7 @@ nr_virtfn'是要启用的VF的编号。
                .id_table =     dev_id_table,
                .probe =        dev_probe,
                .remove =       dev_remove,
-               .suspend =      dev_suspend,
-               .resume =       dev_resume,
+               .driver.pm =    &dev_pm_ops
                .shutdown =     dev_shutdown,
                .sriov_configure = dev_sriov_configure,
        };