projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca83d58
)
drm/i915: Convert i915_gem_object_ops->flags values to use BIT()
author
Chris Wilson
<
[email protected]
>
Tue, 23 May 2017 10:31:16 +0000
(11:31 +0100)
committer
Chris Wilson
<
[email protected]
>
Wed, 24 May 2017 11:02:32 +0000
(12:02 +0100)
Having just watched someone add a new value, 0x3, without realising that
the flags were bit values, I have come to appreciate the value in using
BIT.
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Joonas Lahtinen <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Joonas Lahtinen <
[email protected]
>
drivers/gpu/drm/i915/i915_gem_object.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem_object.h
b/drivers/gpu/drm/i915/i915_gem_object.h
index 174cf923c23633e6e5ec84645bfa22b573e80575..35e1a27729dc8b59aad40d8da6c8a6440436c217 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem_object.h
+++ b/
drivers/gpu/drm/i915/i915_gem_object.h
@@
-37,8
+37,8
@@
struct drm_i915_gem_object_ops {
unsigned int flags;
-#define I915_GEM_OBJECT_HAS_STRUCT_PAGE
0x1
-#define I915_GEM_OBJECT_IS_SHRINKABLE
0x2
+#define I915_GEM_OBJECT_HAS_STRUCT_PAGE
BIT(0)
+#define I915_GEM_OBJECT_IS_SHRINKABLE
BIT(1)
/* Interface between the GEM object and its backing storage.
* get_pages() is called once prior to the use of the associated set