diff options
| author | Wolfram Sang <wsa@the-dreams.de> | 2016-07-23 16:04:20 -0400 |
|---|---|---|
| committer | Wolfram Sang <wsa@the-dreams.de> | 2016-07-23 16:04:20 -0400 |
| commit | b4cdaf32ce04366ec143c2255492918c35f58691 (patch) | |
| tree | ffff0161de80ee92d411e9d72d3179637ead0e53 /Documentation/i2c | |
| parent | 38fa8afff0a99fe8caabbde0d590df3067cf695a (diff) | |
Documentation: i2c: slave: give proper example for pm usage
pm_runtime_forbid was the wrong knob, this is the better one.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'Documentation/i2c')
| -rw-r--r-- | Documentation/i2c/slave-interface | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/i2c/slave-interface b/Documentation/i2c/slave-interface index abd10186a9e9..80807adb8ded 100644 --- a/Documentation/i2c/slave-interface +++ b/Documentation/i2c/slave-interface | |||
| @@ -139,9 +139,9 @@ If you want to add slave support to the bus driver: | |||
| 139 | * implement calls to register/unregister the slave and add those to the | 139 | * implement calls to register/unregister the slave and add those to the |
| 140 | struct i2c_algorithm. When registering, you probably need to set the i2c | 140 | struct i2c_algorithm. When registering, you probably need to set the i2c |
| 141 | slave address and enable slave specific interrupts. If you use runtime pm, you | 141 | slave address and enable slave specific interrupts. If you use runtime pm, you |
| 142 | should use pm_runtime_forbid() because your device usually needs to be powered | 142 | should use pm_runtime_get_sync() because your device usually needs to be |
| 143 | on always to be able to detect its slave address. When unregistering, do the | 143 | powered on always to be able to detect its slave address. When unregistering, |
| 144 | inverse of the above. | 144 | do the inverse of the above. |
| 145 | 145 | ||
| 146 | * Catch the slave interrupts and send appropriate i2c_slave_events to the backend. | 146 | * Catch the slave interrupts and send appropriate i2c_slave_events to the backend. |
| 147 | 147 | ||
