]> Gentwo Git Trees - linux/.git/commit
USB: core: Correct API usb_(enable|disable)_autosuspend() prototypes
authorZijun Hu <quic_zijuhu@quicinc.com>
Tue, 8 Apr 2025 12:08:51 +0000 (20:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Apr 2025 14:12:26 +0000 (16:12 +0200)
commit1692632146451184c4bcb68554098470a119fb01
tree0808f1bce81fa6088d060179baee99caa29554f8
parent1d73df245b19579109193372e7ffe1601ca19323
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>
include/linux/usb.h