Skip to contentSkip to conversation

PM: sleep: Update stale comment in device_resume()

PATCH In review Rafael J. Wysocki 3 participants 5 messages Dec 4, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM: sleep: Update stale comment in device_resume()

From: Rafael J. Wysocki <[email protected]>

There is no function called __device_suspend() any more and it is still mentioned in a comment in device_resume(), so update that comment.

---
 drivers/base/power/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/power/main.c +1 -1
Index: linux-pm/drivers/base/power/main.c
===================================================================
@@ -914,7 +914,7 @@ static void device_resume(struct device
 		goto Complete;
 
 	if (dev->power.direct_complete) {
-		/* Match the pm_runtime_disable() in __device_suspend(). */
+		/* Match the pm_runtime_disable() in device_suspend(). */
 		pm_runtime_enable(dev);
 		goto Complete;
 	}
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Rafael J. Wysocki

From: Rafael J. Wysocki <[email protected]>

There is no function called __device_suspend() any more and it is still mentioned in a comment in device_resume(), so update that comment.

Quoted 7 lines
---
 drivers/base/power/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-pm/drivers/base/power/main.c
===================================================================

Are you not using git? This looks like the old cvs output :)

#2 lore raw
Quoted 12 lines · Greg Kroah-Hartman
Quoted 10 lines · Rafael J. Wysocki

From: Rafael J. Wysocki <[email protected]>

There is no function called __device_suspend() any more and it is still mentioned in a comment in device_resume(), so update that comment.

---
 drivers/base/power/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 4 lines
Quoted 2 lines

Index: linux-pm/drivers/base/power/main.c
===================================================================

Are you not using git? This looks like the old cvs output :)

I use git, but for patch generation I prefer quilt which has produced this patch.

Quoted 1 line
#3 lore raw
Quoted 14 lines · Rafael J. Wysocki
Quoted 12 lines · Greg Kroah-Hartman
Quoted 10 lines · Rafael J. Wysocki

From: Rafael J. Wysocki <[email protected]>

There is no function called __device_suspend() any more and it is still mentioned in a comment in device_resume(), so update that comment.

---
 drivers/base/power/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Index: linux-pm/drivers/base/power/main.c
===================================================================

Are you not using git? This looks like the old cvs output :)

I use git, but for patch generation I prefer quilt which has produced this patch.

From my .quiltrc:

	QUILT_REFRESH_ARGS="--diffstat --strip-trailing-whitespace --no-timestamps --no-index --sort -p1 -p ab"

makes it almost look like the git output :)

#4 lore raw
Quoted 21 lines · Greg Kroah-Hartman
Quoted 19 lines · Rafael J. Wysocki
Quoted 16 lines · Greg Kroah-Hartman
Quoted 5 lines · Rafael J. Wysocki

From: Rafael J. Wysocki <[email protected]>

There is no function called __device_suspend() any more and it is still mentioned in a comment in device_resume(), so update that comment.

Quoted 7 lines
---
 drivers/base/power/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-pm/drivers/base/power/main.c
===================================================================

Are you not using git? This looks like the old cvs output :)

Quoted 7 lines
Quoted 2 lines

I use git, but for patch generation I prefer quilt which has produced this patch.

From my .quiltrc:

        QUILT_REFRESH_ARGS="--diffstat --strip-trailing-whitespace --no-timestamps --no-index --sort -p1 -p ab"

makes it almost look like the git output :)

Good to know, thanks for the hint!