summaryrefslogtreecommitdiff
path: root/kernel/events
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-14 23:05:51 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-16 17:57:36 (GMT)
commitb9b3259746d77f4fcb786e2a43c25bcc40773755 (patch)
tree220c5b779b174f5464ab64e68a85c1889a874b22 /kernel/events
parentad81f0545ef01ea651886dddac4bef6cec930092 (diff)
downloadlinux-b9b3259746d77f4fcb786e2a43c25bcc40773755.tar.xz
sysfs.h: add __ATTR_RW() macro
A number of parts of the kernel created their own version of this, might as well have the sysfs core provide it instead. Reviewed-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/events')
-rw-r--r--kernel/events/core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c
index eba8fb5..dd98780 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -6234,8 +6234,6 @@ perf_event_mux_interval_ms_store(struct device *dev,
return count;
}
-#define __ATTR_RW(attr) __ATTR(attr, 0644, attr##_show, attr##_store)
-
static struct device_attribute pmu_dev_attrs[] = {
__ATTR_RO(type),
__ATTR_RW(perf_event_mux_interval_ms),