public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] kernel/power/pm.c: make pm_send static
@ 2005-02-24 11:11 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-02-24 11:11 UTC (permalink / raw)
  To: pavel; +Cc: linux-kernel

pm_send is deprecated and has no user except for the deprecated 
pm_send_all in the same file.

Let's make pm_send static before someone might use it again.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 Documentation/pm.txt |   17 -----------------
 include/linux/pm.h   |   10 ----------
 kernel/power/pm.c    |    2 +-
 3 files changed, 1 insertion(+), 28 deletions(-)

--- linux-2.6.11-rc4-mm1-full/Documentation/pm.txt.old	2005-02-24 01:17:43.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/Documentation/pm.txt	2005-02-24 01:17:59.000000000 +0100
@@ -222,23 +222,6 @@
 management interface.
 
 /*
- * Send a request to a single device
- *
- * Parameters:
- *   dev - PM device previously returned from pm_register or pm_find
- *   rqst - request type
- *   data - data, if any, associated with the request
- *
- * Returns: 0 if the request is successful
- *          See "pm_callback" return for errors
- *
- * Details: Forward request to device callback and, if a suspend
- *          or resume request, update the pm_dev "state" field
- *          appropriately
- */
-int pm_send(struct pm_dev *dev, pm_request_t rqst, void *data);
-
-/*
  * Send a request to all devices
  *
  * Parameters:
--- linux-2.6.11-rc4-mm1-full/include/linux/pm.h.old	2005-02-24 01:18:17.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/include/linux/pm.h	2005-02-24 01:18:35.000000000 +0100
@@ -116,11 +116,6 @@
 void __deprecated pm_unregister_all(pm_callback callback);
 
 /*
- * Send a request to a single device
- */
-int __deprecated pm_send(struct pm_dev *dev, pm_request_t rqst, void *data);
-
-/*
  * Send a request to all devices
  */
 int __deprecated pm_send_all(pm_request_t rqst, void *data);
@@ -140,11 +135,6 @@
 
 static inline void pm_unregister_all(pm_callback callback) {}
 
-static inline int pm_send(struct pm_dev *dev, pm_request_t rqst, void *data)
-{
-	return 0;
-}
-
 static inline int pm_send_all(pm_request_t rqst, void *data)
 {
 	return 0;
--- linux-2.6.11-rc4-mm1-full/kernel/power/pm.c.old	2005-02-24 01:18:43.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/kernel/power/pm.c	2005-02-24 01:19:04.000000000 +0100
@@ -151,7 +151,7 @@
  *	execution and unload yourself.
  */
  
-int pm_send(struct pm_dev *dev, pm_request_t rqst, void *data)
+static int pm_send(struct pm_dev *dev, pm_request_t rqst, void *data)
 {
 	int status = 0;
 	unsigned long prev_state, next_state;


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

* [2.6 patch] kernel/power/pm.c: make pm_send static
@ 2005-03-02 15:15 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-03-02 15:15 UTC (permalink / raw)
  To: Andrew Morton; +Cc: pavel, linux-kernel

pm_send is deprecated and has no user except for the deprecated 
pm_send_all in the same file.

Let's make pm_send static before someone might use it again.

This patch was already ACK'ed by Pavel Machek.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

This patch was already sent on:
- 24 Feb 2005

 Documentation/pm.txt |   17 -----------------
 include/linux/pm.h   |   10 ----------
 kernel/power/pm.c    |    2 +-
 3 files changed, 1 insertion(+), 28 deletions(-)

--- linux-2.6.11-rc4-mm1-full/Documentation/pm.txt.old	2005-02-24 01:17:43.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/Documentation/pm.txt	2005-02-24 01:17:59.000000000 +0100
@@ -222,23 +222,6 @@
 management interface.
 
 /*
- * Send a request to a single device
- *
- * Parameters:
- *   dev - PM device previously returned from pm_register or pm_find
- *   rqst - request type
- *   data - data, if any, associated with the request
- *
- * Returns: 0 if the request is successful
- *          See "pm_callback" return for errors
- *
- * Details: Forward request to device callback and, if a suspend
- *          or resume request, update the pm_dev "state" field
- *          appropriately
- */
-int pm_send(struct pm_dev *dev, pm_request_t rqst, void *data);
-
-/*
  * Send a request to all devices
  *
  * Parameters:
--- linux-2.6.11-rc4-mm1-full/include/linux/pm.h.old	2005-02-24 01:18:17.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/include/linux/pm.h	2005-02-24 01:18:35.000000000 +0100
@@ -116,11 +116,6 @@
 void __deprecated pm_unregister_all(pm_callback callback);
 
 /*
- * Send a request to a single device
- */
-int __deprecated pm_send(struct pm_dev *dev, pm_request_t rqst, void *data);
-
-/*
  * Send a request to all devices
  */
 int __deprecated pm_send_all(pm_request_t rqst, void *data);
@@ -140,11 +135,6 @@
 
 static inline void pm_unregister_all(pm_callback callback) {}
 
-static inline int pm_send(struct pm_dev *dev, pm_request_t rqst, void *data)
-{
-	return 0;
-}
-
 static inline int pm_send_all(pm_request_t rqst, void *data)
 {
 	return 0;
--- linux-2.6.11-rc4-mm1-full/kernel/power/pm.c.old	2005-02-24 01:18:43.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/kernel/power/pm.c	2005-02-24 01:19:04.000000000 +0100
@@ -151,7 +151,7 @@
  *	execution and unload yourself.
  */
  
-int pm_send(struct pm_dev *dev, pm_request_t rqst, void *data)
+static int pm_send(struct pm_dev *dev, pm_request_t rqst, void *data)
 {
 	int status = 0;
 	unsigned long prev_state, next_state;


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

end of thread, other threads:[~2005-03-02 15:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-24 11:11 [2.6 patch] kernel/power/pm.c: make pm_send static Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2005-03-02 15:15 Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox