scsi: ufs: Declare ufshcd_wait_for_register() static
Declare this function static since it is only used inside the ufshcd.c source file. Link: https://lore.kernel.org/r/20220419225811.4127248-3-bvanassche@acm.org Tested-by: Bean Huo <beanhuo@micron.com> Reviewed-by: Avri Altman <avri.altman@wdc.com> Reviewed-by: Bean Huo <beanhuo@micron.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
2abe580023
commit
59a57bb79e
@ -639,7 +639,7 @@ EXPORT_SYMBOL_GPL(ufshcd_delay_us);
|
||||
* Return:
|
||||
* -ETIMEDOUT on error, zero on success.
|
||||
*/
|
||||
int ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask,
|
||||
static int ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask,
|
||||
u32 val, unsigned long interval_us,
|
||||
unsigned long timeout_ms)
|
||||
{
|
||||
|
@ -1028,9 +1028,6 @@ void ufshcd_remove(struct ufs_hba *);
|
||||
int ufshcd_uic_hibern8_enter(struct ufs_hba *hba);
|
||||
int ufshcd_uic_hibern8_exit(struct ufs_hba *hba);
|
||||
void ufshcd_delay_us(unsigned long us, unsigned long tolerance);
|
||||
int ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask,
|
||||
u32 val, unsigned long interval_us,
|
||||
unsigned long timeout_ms);
|
||||
void ufshcd_parse_dev_ref_clk_freq(struct ufs_hba *hba, struct clk *refclk);
|
||||
void ufshcd_update_evt_hist(struct ufs_hba *hba, u32 id, u32 val);
|
||||
void ufshcd_hba_stop(struct ufs_hba *hba);
|
||||
|
Loading…
x
Reference in New Issue
Block a user