Skip to content

Commit

Permalink
USB: Fix doc for usb_autopm_enable
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
glevand authored and gregkh committed Oct 17, 2008
1 parent 7384a92 commit 81ab5b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Documentation/usb/power-management.txt
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,12 @@ without holding the mutex.

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

usb_autopm_enable() sets pm_usage_cnt to 1 and then calls
usb_autopm_set_interface(), which will attempt an autoresume.

usb_autopm_disable() sets pm_usage_cnt to 0 and then calls
usb_autopm_enable() sets pm_usage_cnt to 0 and then calls
usb_autopm_set_interface(), which will attempt an autosuspend.

usb_autopm_disable() sets pm_usage_cnt to 1 and then calls
usb_autopm_set_interface(), which will attempt an autoresume.

The conventional usage pattern is that a driver calls
usb_autopm_get_interface() in its open routine and
usb_autopm_put_interface() in its close or release routine. But
Expand Down

0 comments on commit 81ab5b8

Please sign in to comment.