scsi: ufs: core: Use a function to calculate versions
authorCaleb Connolly <caleb@connolly.tech>
Wed, 10 Mar 2021 15:33:42 +0000 (15:33 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Mar 2021 04:04:40 +0000 (00:04 -0400)
commit5142881801786a0658a8df16986b31e76a09760d
tree46941ad1cb14ed0138308c8fe35e1dc8255e9aa9
parent2a8561b78e377f48aa638d7cd203628b6dfc2519
scsi: ufs: core: Use a function to calculate versions

Update the driver to use a function for referencing the UFS version.  This
replaces the UFSHCI_VERSION_xy macros, and supports comparisons where they
did not.

Link: https://lore.kernel.org/r/20210310153215.371227-2-caleb@connolly.tech
Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
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>
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshci.h