mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
6a8b55ed40
commit
2f516e7cbe
|
@ -167,11 +167,6 @@ struct cpuidle_attr {
|
||||||
ssize_t (*store)(struct cpuidle_device *, const char *, size_t count);
|
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)
|
#define attr_to_cpuidleattr(a) container_of(a, struct cpuidle_attr, attr)
|
||||||
|
|
||||||
struct cpuidle_device_kobj {
|
struct cpuidle_device_kobj {
|
||||||
|
|
Loading…
Reference in New Issue