From c1b7df95be1194efcfd0d9ffd63da1ce27272565 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Sun, 25 Sep 2005 05:19:06 +0000 Subject: add __ATTR --- linux-core/drm_compat.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'linux-core') diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h index a100e609..46d6c0e6 100644 --- 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 -- cgit v1.2.3