diff options
author | 2025-04-08 20:08:51 +0800 | |
---|---|---|
committer | 2025-04-11 16:12:26 +0200 | |
commit | 1692632146451184c4bcb68554098470a119fb01 (patch) | |
tree | 0808f1bce81fa6088d060179baee99caa29554f8 | |
parent | usb: Remove orphaned UDC drivers (diff) | |
download | linux-rng-1692632146451184c4bcb68554098470a119fb01.tar.xz linux-rng-1692632146451184c4bcb68554098470a119fb01.zip |
USB: core: Correct API usb_(enable|disable)_autosuspend() prototypes
API usb_(enable|disable)_autosuspend() have inconsistent prototypes
regarding if CONFIG_PM is defined.
Correct prototypes when the macro is undefined by referring to those
when the macro is defined.
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20250408-fix_usb_hdr-v1-1-e785c5b49481@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | include/linux/usb.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index b46738701f8d..1b2545b4363b 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -815,10 +815,10 @@ static inline void usb_mark_last_busy(struct usb_device *udev) #else -static inline int usb_enable_autosuspend(struct usb_device *udev) -{ return 0; } -static inline int usb_disable_autosuspend(struct usb_device *udev) -{ return 0; } +static inline void usb_enable_autosuspend(struct usb_device *udev) +{ } +static inline void usb_disable_autosuspend(struct usb_device *udev) +{ } static inline int usb_autopm_get_interface(struct usb_interface *intf) { return 0; } |