Commit 16926321 authored by Zijun Hu's avatar Zijun Hu Committed by Greg Kroah-Hartman
Browse files

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: default avatarZijun Hu <quic_zijuhu@quicinc.com>
Reviewed-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20250408-fix_usb_hdr-v1-1-e785c5b49481@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d73df24
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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; }