Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a75d946f authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman
Browse files

console: move for_each_console to linux/console.h



Move it out of printk.c so that we can use it all over the code. There
are some potential users which will be converted to that macro in next
patches.

Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 2adc2917
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -126,6 +126,12 @@ struct console {
	struct	 console *next;
	struct	 console *next;
};
};


/*
 * for_each_console() allows you to iterate on each console
 */
#define for_each_console(con) \
	for (con = console_drivers; con != NULL; con = con->next)

extern int console_set_on_cmdline;
extern int console_set_on_cmdline;


extern int add_preferred_console(char *name, int idx, char *options);
extern int add_preferred_console(char *name, int idx, char *options);
+0 −6
Original line number Original line Diff line number Diff line
@@ -42,12 +42,6 @@


#include <asm/uaccess.h>
#include <asm/uaccess.h>


/*
 * for_each_console() allows you to iterate on each console
 */
#define for_each_console(con) \
	for (con = console_drivers; con != NULL; con = con->next)

/*
/*
 * Architectures can override it:
 * Architectures can override it:
 */
 */