scsi: ufs: core: Rename ufshcd_auto_hibern8_enable() and make it static
authorBart Van Assche <bvanassche@acm.org>
Thu, 14 Dec 2023 19:23:57 +0000 (11:23 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Dec 2023 01:51:14 +0000 (20:51 -0500)
commitbdf5c0bb4dd9e7a8a4423643e6c73a7114bd58d8
treea9e1e7e6dc33b5d39ed2ea1a8aae2b7018338c3a
parent26cdd6940c94cbd81cc524093bd689b061df58c4
scsi: ufs: core: Rename ufshcd_auto_hibern8_enable() and make it static

Rename ufshcd_auto_hibern8_enable() into ufshcd_configure_auto_hibern8()
since this function can enable or disable auto-hibernation. Since
ufshcd_auto_hibern8_enable() is only used inside the UFSHCI driver core,
declare it static. Additionally, move the definition of this function to
just before its first caller.

Suggested-by: Bao D. Nguyen <quic_nguyenb@quicinc.com>
Reviewed-by: Bao D. Nguyen <quic_nguyenb@quicinc.com>
Reviewed-by: Can Guo <quic_cang@quicinc.com>
Cc: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20231214192416.3638077-2-bvanassche@acm.org
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c
include/ufs/ufshcd.h