summaryrefslogtreecommitdiff
path: root/Documentation/i2c/upgrading-clients
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-11-30 17:52:31 +0100
committerWolfram Sang <wsa@the-dreams.de>2014-12-04 19:09:03 +0100
commit5f835cef770fc71263ace29198a9e6743033a705 (patch)
treea87214fb62079c6766f97950386e40dd28aee807 /Documentation/i2c/upgrading-clients
parent530834b13feff543a49b214eb750e97fbd7a22be (diff)
Documentation: i2c: Use PM ops instead of legacy suspend/resume
New drivers should use PM ops instead of the legacy suspend/resume callbacks. Update the I2C device driver guides to reflect this. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'Documentation/i2c/upgrading-clients')
-rw-r--r--Documentation/i2c/upgrading-clients6
1 files changed, 2 insertions, 4 deletions
diff --git a/Documentation/i2c/upgrading-clients b/Documentation/i2c/upgrading-clients
index 8e5fbd88c7d1..ccba3ffd6e80 100644
--- a/Documentation/i2c/upgrading-clients
+++ b/Documentation/i2c/upgrading-clients
@@ -79,11 +79,10 @@ static struct i2c_driver example_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "example",
+ .pm = &example_pm_ops,
},
.attach_adapter = example_attach_adapter,
.detach_client = example_detach,
- .suspend = example_suspend,
- .resume = example_resume,
};
@@ -272,10 +271,9 @@ static struct i2c_driver example_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "example",
+ .pm = &example_pm_ops,
},
.id_table = example_idtable,
.probe = example_probe,
.remove = example_remove,
- .suspend = example_suspend,
- .resume = example_resume,
};