mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-06 05:58:35 +02:00
add __ATTR
This commit is contained in:
parent
3a0230ef9c
commit
c1b7df95be
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue