projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a8b55e
)
cpuidle: sysfs: Remove the unused define_one_r(o/w) macros
author
Hanjun Guo
<guohanjun@huawei.com>
Mon, 27 Apr 2020 09:34:20 +0000
(17:34 +0800)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Wed, 29 Apr 2020 11:33:24 +0000
(13:33 +0200)
The define_one_ro and define_one_rw macros are not used,
remove it.
Signed-off-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/cpuidle/sysfs.c
b/drivers/cpuidle/sysfs.c
index cdeedbf02646da3b060e271b83d1ff7d57e5a6ed..7729cf622d1ee2935e3ba0769dc208ac6929666a 100644
(file)
--- a/
drivers/cpuidle/sysfs.c
+++ b/
drivers/cpuidle/sysfs.c
@@
-167,11
+167,6
@@
struct cpuidle_attr {
ssize_t (*store)(struct cpuidle_device *, const char *, size_t count);
};
-#define define_one_ro(_name, show) \
- static struct cpuidle_attr attr_##_name = __ATTR(_name, 0444, show, NULL)
-#define define_one_rw(_name, show, store) \
- static struct cpuidle_attr attr_##_name = __ATTR(_name, 0644, show, store)
-
#define attr_to_cpuidleattr(a) container_of(a, struct cpuidle_attr, attr)
struct cpuidle_device_kobj {