Re: [PATCH v10 15/18] scsi: ufs: Rename ufshcd_auto_hibern8_enable() and make it static

Can Guo
2023-08-21T05:34:59Z

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 <quic_nguyenb@quicinc.com>
> Cc: Martin K. Petersen <martin.petersen@oracle.com>
> Cc: Can Guo <quic_cang@quicinc.com>
> Cc: Avri Altman <avri.altman@wdc.com>
> Cc: Bao D. Nguyen <quic_nguyenb@quicinc.com>
> 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 <quic_cang@quicinc.com>