scsi: ufs: Add missing UFS_MASK macro definition
authorSantosh Y <santoshsy@gmail.com>
Thu, 24 Nov 2016 04:58:51 +0000 (12:58 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Nov 2016 15:04:25 +0000 (10:04 -0500)
Reported-by: Venkatraman S <svenkatr@ti.com>
Reviewed-by: Vinayak Holikatti <vinholikatti@gmail.com>
Signed-off-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshci.h

index 9599741..bbd8df9 100644 (file)
@@ -83,6 +83,8 @@ enum {
        MASK_UIC_DME_TEST_MODE_SUPPORT          = 0x04000000,
 };
 
+#define UFS_MASK(mask, offset)         ((mask) << (offset))
+
 /* UFS Version 08h */
 #define MINOR_VERSION_NUM_MASK         UFS_MASK(0xFFFF, 0)
 #define MAJOR_VERSION_NUM_MASK         UFS_MASK(0xFFFF, 16)