[PATCH 3/3] VIDEO: xen-fb, switch to for_each_console

Subsystems: framebuffer layer, the rest, xen hypervisor interface

STALE5816d

2 messages, 2 authors, 2010-11-04 · open the first message on its own page

[PATCH 3/3] VIDEO: xen-fb, switch to for_each_console

From: Jiri Slaby <hidden>
Date: 2010-11-03 15:29:15

Use newly added for_each_console for iterating consoles.

Signed-off-by: Jiri Slaby <redacted>
Cc: Jeremy Fitzhardinge <redacted>
Cc: Chris Wright <redacted>
Cc: virtualization@lists.osdl.org
Cc: xen-devel@lists.xensource.com
Cc: linux-fbdev@vger.kernel.org
---
 drivers/video/xen-fbfront.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c
index 428d273..4abb0b9 100644
--- a/drivers/video/xen-fbfront.c
+++ b/drivers/video/xen-fbfront.c
@@ -492,7 +492,7 @@ xenfb_make_preferred_console(void)
 		return;
 
 	acquire_console_sem();
-	for (c = console_drivers; c; c = c->next) {
+	for_each_console(c) {
 		if (!strcmp(c->name, "tty") && c->index = 0)
 			break;
 	}
-- 
1.7.3.1

Re: [PATCH 3/3] VIDEO: xen-fb, switch to for_each_console

From: Jeremy Fitzhardinge <hidden>
Date: 2010-11-04 15:20:48

On 11/03/2010 11:28 AM, Jiri Slaby wrote:
Use newly added for_each_console for iterating consoles.

Signed-off-by: Jiri Slaby <redacted>
Cc: Jeremy Fitzhardinge <redacted>
Sure, if that's what all the kids are doing these days.

Acked-by: Jeremy Fitzhardinge <redacted>

    J
quoted hunk
Cc: Chris Wright <redacted>
Cc: virtualization@lists.osdl.org
Cc: xen-devel@lists.xensource.com
Cc: linux-fbdev@vger.kernel.org
---
 drivers/video/xen-fbfront.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c
index 428d273..4abb0b9 100644
--- a/drivers/video/xen-fbfront.c
+++ b/drivers/video/xen-fbfront.c
@@ -492,7 +492,7 @@ xenfb_make_preferred_console(void)
 		return;
 
 	acquire_console_sem();
-	for (c = console_drivers; c; c = c->next) {
+	for_each_console(c) {
 		if (!strcmp(c->name, "tty") && c->index = 0)
 			break;
 	}

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help