提交 f065aca2 编写于 作者: C Caleb Connolly 提交者: 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: NBean Huo <beanhuo@micron.com>
Signed-off-by: NCaleb Connolly <caleb@connolly.tech>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册