add __ATTR
parent
3a0230ef9c
commit
c1b7df95be
|
@ -200,4 +200,13 @@ static inline int remap_pfn_range(struct vm_area_struct *vma, unsigned long from
|
||||||
#define pci_pretty_name(dev) ""
|
#define pci_pretty_name(dev) ""
|
||||||
#endif
|
#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
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue