]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/xe: Convert xe_vma_op_flags to BIT macros
authorMatthew Brost <matthew.brost@intel.com>
Thu, 31 Aug 2023 14:54:21 +0000 (07:54 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:40:39 +0000 (11:40 -0500)
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>
drivers/gpu/drm/xe/xe_vm_types.h

index f8675c3da3b1440873bf53e74c30ece044e5bc57..40ce8953bacbb2a0026f05d829d1957a364abe59 100644 (file)
@@ -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 */