Skip to content

Commit

Permalink
scsi: ufs: Add missing UFS_MASK macro definition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Santosh Y authored and Martin K. Petersen committed Nov 25, 2016
1 parent 2ae7578 commit 679882a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/ufs/ufshci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 679882a

Please sign in to comment.