Skip to content

Commit 81ab5b8

Browse files
glevandgregkh
authored andcommitted
USB: Fix doc for usb_autopm_enable
Correct errors in the descriptions for usb_autopm_enable and usb_autopm_disable in the USB PM doc. Signed-off-by: Geoff Levand <[email protected]> Acked-by: Alan Stern <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7384a92 commit 81ab5b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/usb/power-management.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,12 +350,12 @@ without holding the mutex.
350350

351351
There also are a couple of utility routines drivers can use:
352352

353-
usb_autopm_enable() sets pm_usage_cnt to 1 and then calls
354-
usb_autopm_set_interface(), which will attempt an autoresume.
355-
356-
usb_autopm_disable() sets pm_usage_cnt to 0 and then calls
353+
usb_autopm_enable() sets pm_usage_cnt to 0 and then calls
357354
usb_autopm_set_interface(), which will attempt an autosuspend.
358355

356+
usb_autopm_disable() sets pm_usage_cnt to 1 and then calls
357+
usb_autopm_set_interface(), which will attempt an autoresume.
358+
359359
The conventional usage pattern is that a driver calls
360360
usb_autopm_get_interface() in its open routine and
361361
usb_autopm_put_interface() in its close or release routine. But

0 commit comments

Comments
 (0)