USB: expand autosuspend/autoresume API
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 30 Oct 2006 22:07:51 +0000 (17:07 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Dec 2006 22:23:30 +0000 (14:23 -0800)
commit692a186c9d5f12d43cef28d40c25247dc4f302f0
tree8271b7930fbabfd6b6d5cc0a3b42e65ea56976d4
parentaf4f76066d0fcb215ae389b8839d7ae37ce0e28b
USB: expand autosuspend/autoresume API

This patch (as814) adds usb_autopm_set_interface() to the autosuspend
API.  It also provides convenient wrapper routines,
usb_autopm_enable() and usb_autopm_disable(), for drivers that want
to specify directly whether autosuspend should be allowed.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/driver.c
include/linux/usb.h