mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 10:24:01 -04:00
drm/xe: Convert xe_vma_op_flags to BIT macros
Rather than open code the shift for values, use BIT macros. Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
committed by
Rodrigo Vivi
parent
9a4566d5e0
commit
35dfb48462
@@ -370,11 +370,11 @@ struct xe_vma_op_prefetch {
|
||||
/** enum xe_vma_op_flags - flags for VMA operation */
|
||||
enum xe_vma_op_flags {
|
||||
/** @XE_VMA_OP_FIRST: first VMA operation for a set of syncs */
|
||||
XE_VMA_OP_FIRST = (0x1 << 0),
|
||||
XE_VMA_OP_FIRST = BIT(0),
|
||||
/** @XE_VMA_OP_LAST: last VMA operation for a set of syncs */
|
||||
XE_VMA_OP_LAST = (0x1 << 1),
|
||||
XE_VMA_OP_LAST = BIT(1),
|
||||
/** @XE_VMA_OP_COMMITTED: VMA operation committed */
|
||||
XE_VMA_OP_COMMITTED = (0x1 << 2),
|
||||
XE_VMA_OP_COMMITTED = BIT(2),
|
||||
};
|
||||
|
||||
/** struct xe_vma_op - VMA operation */
|
||||
|
||||
Reference in New Issue
Block a user