diff options
author | Hanjun Guo <guohanjun@huawei.com> | 2020-04-27 11:34:20 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-04-29 13:33:24 +0200 |
commit | 2f516e7cbe88f05023b6cc458d3a22b7dc56af99 (patch) | |
tree | c0a9bcfa4902a492f0f1a2794788afc30e545033 /drivers/cpuidle | |
parent | Linux 5.7-rc3 (diff) | |
download | linux-2f516e7cbe88f05023b6cc458d3a22b7dc56af99.tar.xz linux-2f516e7cbe88f05023b6cc458d3a22b7dc56af99.zip |
cpuidle: sysfs: Remove the unused define_one_r(o/w) macros
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>
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r-- | drivers/cpuidle/sysfs.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/cpuidle/sysfs.c b/drivers/cpuidle/sysfs.c index cdeedbf02646..7729cf622d1e 100644 --- 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 { |