linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cpuidle: Delete unused define_one_ro/rw macros
@ 2020-05-13 10:17 Pascal Terjan
  2020-05-14 11:47 ` Rafael J. Wysocki
  0 siblings, 1 reply; 4+ messages in thread
From: Pascal Terjan @ 2020-05-13 10:17 UTC (permalink / raw)
  To: Rafael J. Wysocki, Daniel Lezcano, linux-pm; +Cc: Pascal Terjan

They were already unused when cpuidle was introduced.

Signed-off-by: Pascal Terjan <pterjan@google.com>
---
 drivers/cpuidle/sysfs.c | 5 -----
 1 file changed, 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 {
-- 
2.26.2.645.ge9eca65c58-goog


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-15  6:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-13 10:17 [PATCH] cpuidle: Delete unused define_one_ro/rw macros Pascal Terjan
2020-05-14 11:47 ` Rafael J. Wysocki
2020-05-14 18:07   ` Pascal Terjan
2020-05-15  6:38     ` Hanjun Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).