Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47458
b: refs/heads/master
c: a52f362
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Feb 11, 2007
1 parent 7a68553 commit ea4a4ae
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99b0278f95fc9d55adf65133dc678167a88b632a
refs/heads/master: a52f362f864f56238c9036f5c56f763a80e2ddd5
5 changes: 2 additions & 3 deletions trunk/arch/um/drivers/chan_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,16 +354,15 @@ int console_write_chan(struct list_head *chans, const char *buf, int len)
return ret;
}

int console_open_chan(struct line *line, struct console *co,
const struct chan_opts *opts)
int console_open_chan(struct line *line, struct console *co)
{
int err;

err = open_chan(&line->chan_list);
if(err)
return err;

printk("Console initialized on /dev/%s%d\n",co->name,co->index);
printk("Console initialized on /dev/%s%d\n", co->name, co->index);
return 0;
}

Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/um/drivers/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ static void ssl_announce(char *dev_name, int dev)
dev_name);
}

/* Almost const, except that xterm_title may be changed in an initcall */
static struct chan_opts opts = {
.announce = ssl_announce,
.xterm_title = "Serial Line #%d",
Expand Down Expand Up @@ -171,7 +172,7 @@ static int ssl_console_setup(struct console *co, char *options)
{
struct line *line = &serial_lines[co->index];

return console_open_chan(line, co, &opts);
return console_open_chan(line, co);
}

static struct console ssl_cons = {
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/um/drivers/stdio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ void stdio_announce(char *dev_name, int dev)
dev_name);
}

/* Almost const, except that xterm_title may be changed in an initcall */
static struct chan_opts opts = {
.announce = stdio_announce,
.xterm_title = "Virtual Console #%d",
Expand Down Expand Up @@ -144,7 +145,7 @@ static int uml_console_setup(struct console *co, char *options)
{
struct line *line = &vts[co->index];

return console_open_chan(line, co, &opts);
return console_open_chan(line, co);
}

static struct console stdiocons = {
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/um/include/chan_kern.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ extern int write_chan(struct list_head *chans, const char *buf, int len,
int write_irq);
extern int console_write_chan(struct list_head *chans, const char *buf,
int len);
extern int console_open_chan(struct line *line, struct console *co,
const struct chan_opts *opts);
extern int console_open_chan(struct line *line, struct console *co);
extern void deactivate_chan(struct list_head *chans, int irq);
extern void reactivate_chan(struct list_head *chans, int irq);
extern void chan_enable_winch(struct list_head *chans, struct tty_struct *tty);
Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/um/include/chan_user.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
#include "init.h"

struct chan_opts {
void (*announce)(char *dev_name, int dev);
void (*const announce)(char *dev_name, int dev);
char *xterm_title;
int raw;
unsigned long tramp_stack;
int in_kernel;
const int raw;
const unsigned long tramp_stack;
const int in_kernel;
};

enum chan_init_pri { INIT_STATIC, INIT_ALL, INIT_ONE };
Expand Down

0 comments on commit ea4a4ae

Please sign in to comment.