projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a0230e
)
add __ATTR
author
Dave Airlie
<airlied@linux.ie>
Sun, 25 Sep 2005 05:19:06 +0000
(
05:19
+0000)
committer
Dave Airlie
<airlied@linux.ie>
Sun, 25 Sep 2005 05:19:06 +0000
(
05:19
+0000)
linux-core/drm_compat.h
patch
|
blob
|
history
diff --git
a/linux-core/drm_compat.h
b/linux-core/drm_compat.h
index
a100e60
..
46d6c0e
100644
(file)
--- a/
linux-core/drm_compat.h
+++ b/
linux-core/drm_compat.h
@@
-200,4
+200,13
@@
static inline int remap_pfn_range(struct vm_area_struct *vma, unsigned long from
#define pci_pretty_name(dev) ""
#endif
+/* sysfs __ATTR macro */
+#ifndef __ATTR
+#define __ATTR(_name,_mode,_show,_store) { \
+ .attr = {.name = __stringify(_name), .mode = _mode, .owner = THIS_MODULE }, \
+ .show = _show, \
+ .store = _store, \
+}
+#endif
+
#endif