Skip to content

Commit 2f516e7

Browse files
guohanjunrafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 6a8b55e commit 2f516e7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/cpuidle/sysfs.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,6 @@ struct cpuidle_attr {
167167
ssize_t (*store)(struct cpuidle_device *, const char *, size_t count);
168168
};
169169

170-
#define define_one_ro(_name, show) \
171-
static struct cpuidle_attr attr_##_name = __ATTR(_name, 0444, show, NULL)
172-
#define define_one_rw(_name, show, store) \
173-
static struct cpuidle_attr attr_##_name = __ATTR(_name, 0644, show, store)
174-
175170
#define attr_to_cpuidleattr(a) container_of(a, struct cpuidle_attr, attr)
176171

177172
struct cpuidle_device_kobj {

0 commit comments

Comments
 (0)