[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210309120212.119451-3-caleb@connolly.tech>
Date: Tue, 09 Mar 2021 12:02:58 +0000
From: Caleb Connolly <caleb@...nolly.tech>
To: caleb@...nolly.tech, Andy Gross <agross@...nel.org>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
Alim Akhtar <alim.akhtar@...sung.com>,
Avri Altman <avri.altman@....com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>
Cc: ejb@...ux.ibm.com, stanley.chu@...iatek.com, cang@...eaurora.org,
beanhuo@...ron.com, jaegeuk@...nel.org, asutoshd@...eaurora.org,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-msm@...r.kernel.org
Subject: [RESEND PATCH v2 2/3] scsi: ufs: qcom: use ufshci_version function
Replace the UFSHCI_VERSION_xy macros.
Signed-off-by: Caleb Connolly <caleb@...nolly.tech>
---
drivers/scsi/ufs/ufs-qcom.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c
index f97d7b0ae3b6..2d54dce0eeda 100644
--- a/drivers/scsi/ufs/ufs-qcom.c
+++ b/drivers/scsi/ufs/ufs-qcom.c
@@ -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);
}
/**
--
2.29.2
Powered by blists - more mailing lists