Skip to content

Commit

Permalink
scsi: ufs: qcom: Use ufshci_version() function
Browse files Browse the repository at this point in the history
Replace the UFSHCI_VERSION_xy macros.

Link: https://lore.kernel.org/r/20210310153215.371227-3-caleb@connolly.tech
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Caleb Connolly <caleb@connolly.tech>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Caleb Connolly authored and Martin K. Petersen committed Mar 17, 2021
1 parent 5142881 commit f065aca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/ufs/ufs-qcom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit f065aca

Please sign in to comment.