Commit f065aca2 authored by Caleb Connolly's avatar Caleb Connolly Committed by Martin K. Petersen

scsi: ufs: qcom: Use ufshci_version() function

Replace the UFSHCI_VERSION_xy macros.

Link: https://lore.kernel.org/r/20210310153215.371227-3-caleb@connolly.techReviewed-by: default avatarBean Huo <beanhuo@micron.com>
Signed-off-by: default avatarCaleb Connolly <caleb@connolly.tech>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 51428818
......@@ -809,9 +809,9 @@ static u32 ufs_qcom_get_ufs_hci_version(struct ufs_hba *hba)
struct ufs_qcom_host *host = ufshcd_get_variant(hba);
if (host->hw_ver.major == 0x1)
return UFSHCI_VERSION_11;
return ufshci_version(1, 1);
else
return UFSHCI_VERSION_20;
return ufshci_version(2, 0);
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment