virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/3] VIDEO: xen-fb, switch to for_each_console
       [not found] <1288798114-23206-1-git-send-email-jslaby@suse.cz>
@ 2010-11-03 15:28 ` Jiri Slaby
  2010-11-04 15:20   ` Jeremy Fitzhardinge
  0 siblings, 1 reply; 2+ messages in thread
From: Jiri Slaby @ 2010-11-03 15:28 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-kernel, jirislaby, Jeremy Fitzhardinge, Chris Wright,
	virtualization, xen-devel, linux-fbdev

Use newly added for_each_console for iterating consoles.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: Chris Wright <chrisw@sous-sol.org>
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

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

* Re: [PATCH 3/3] VIDEO: xen-fb, switch to for_each_console
  2010-11-03 15:28 ` [PATCH 3/3] VIDEO: xen-fb, switch to for_each_console Jiri Slaby
@ 2010-11-04 15:20   ` Jeremy Fitzhardinge
  0 siblings, 0 replies; 2+ messages in thread
From: Jeremy Fitzhardinge @ 2010-11-04 15:20 UTC (permalink / raw)
  To: Jiri Slaby
  Cc: linux-fbdev, xen-devel, jirislaby, Konrad Rzeszutek Wilk,
	linux-kernel, Chris Wright, virtualization, Andrew Morton

On 11/03/2010 11:28 AM, Jiri Slaby wrote:
> Use newly added for_each_console for iterating consoles.
>
> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
> Cc: Jeremy Fitzhardinge <jeremy@xensource.com>

Sure, if that's what all the kids are doing these days.

Acked-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

    J

> Cc: Chris Wright <chrisw@sous-sol.org>
> 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;
>  	}

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

end of thread, other threads:[~2010-11-04 15:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1288798114-23206-1-git-send-email-jslaby@suse.cz>
2010-11-03 15:28 ` [PATCH 3/3] VIDEO: xen-fb, switch to for_each_console Jiri Slaby
2010-11-04 15:20   ` Jeremy Fitzhardinge

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).