Re: [PATCH v10 15/18] scsi: ufs: Rename ufshcd_auto_hibern8_enable() and make it static
From: Can Guo <hidden>
Date: 2023-08-21 05:34:59
Also in:
linux-scsi
From: Can Guo <hidden>
Date: 2023-08-21 05:34:59
Also in:
linux-scsi
On 8/19/2023 3:34 AM, Bart Van Assche wrote:
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 <redacted> Cc: Martin K. Petersen <martin.petersen@oracle.com> Cc: Can Guo <redacted> Cc: Avri Altman <avri.altman@wdc.com> Cc: Bao D. Nguyen <redacted> Signed-off-by: Bart Van Assche <bvanassche@acm.org> --- drivers/ufs/core/ufshcd.c | 24 +++++++++++------------- include/ufs/ufshcd.h | 1 - 2 files changed, 11 insertions(+), 14 deletions(-)
Reviewed-by: Can Guo <redacted>