Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181875
b: refs/heads/master
c: b511306
h: refs/heads/master
i:
  181873: 7223743
  181871: bb3024a
v: v3
  • Loading branch information
Rusty Russell authored and Benjamin Herrenschmidt committed Feb 3, 2010
1 parent 2792811 commit 0db5f85
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 14 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: 7b62922a071aea362e879252d7482e448bd63d9c
refs/heads/master: b51130685817d8c1b56386f9957405b5be2cdfe0
2 changes: 1 addition & 1 deletion trunk/drivers/char/hvc_beat.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static int hvc_beat_put_chars(uint32_t vtermno, const char *buf, int cnt)
return cnt;
}

static struct hv_ops hvc_beat_get_put_ops = {
static const struct hv_ops hvc_beat_get_put_ops = {
.get_chars = hvc_beat_get_chars,
.put_chars = hvc_beat_put_chars,
};
Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/char/hvc_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static struct hvc_struct *hvc_get_by_index(int index)
* console interfaces but can still be used as a tty device. This has to be
* static because kmalloc will not work during early console init.
*/
static struct hv_ops *cons_ops[MAX_NR_HVC_CONSOLES];
static const struct hv_ops *cons_ops[MAX_NR_HVC_CONSOLES];
static uint32_t vtermnos[MAX_NR_HVC_CONSOLES] =
{[0 ... MAX_NR_HVC_CONSOLES - 1] = -1};

Expand Down Expand Up @@ -247,7 +247,7 @@ static void destroy_hvc_struct(struct kref *kref)
* vty adapters do NOT get an hvc_instantiate() callback since they
* appear after early console init.
*/
int hvc_instantiate(uint32_t vtermno, int index, struct hv_ops *ops)
int hvc_instantiate(uint32_t vtermno, int index, const struct hv_ops *ops)
{
struct hvc_struct *hp;

Expand Down Expand Up @@ -749,7 +749,8 @@ static const struct tty_operations hvc_ops = {
};

struct hvc_struct __devinit *hvc_alloc(uint32_t vtermno, int data,
struct hv_ops *ops, int outbuf_size)
const struct hv_ops *ops,
int outbuf_size)
{
struct hvc_struct *hp;
int i;
Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/char/hvc_console.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ struct hvc_struct {
int outbuf_size;
int n_outbuf;
uint32_t vtermno;
struct hv_ops *ops;
const struct hv_ops *ops;
int irq_requested;
int data;
struct winsize ws;
Expand All @@ -76,11 +76,12 @@ struct hv_ops {
};

/* Register a vterm and a slot index for use as a console (console_init) */
extern int hvc_instantiate(uint32_t vtermno, int index, struct hv_ops *ops);
extern int hvc_instantiate(uint32_t vtermno, int index,
const struct hv_ops *ops);

/* register a vterm for hvc tty operation (module_init or hotplug add) */
extern struct hvc_struct * __devinit hvc_alloc(uint32_t vtermno, int data,
struct hv_ops *ops, int outbuf_size);
const struct hv_ops *ops, int outbuf_size);
/* remove a vterm from hvc tty operation (module_exit or hotplug remove) */
extern int hvc_remove(struct hvc_struct *hp);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/hvc_iseries.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ static int put_chars(uint32_t vtermno, const char *buf, int count)
return sent;
}

static struct hv_ops hvc_get_put_ops = {
static const struct hv_ops hvc_get_put_ops = {
.get_chars = get_chars,
.put_chars = put_chars,
.notifier_add = notifier_add_irq,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/hvc_iucv.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ static int hvc_iucv_pm_restore_thaw(struct device *dev)


/* HVC operations */
static struct hv_ops hvc_iucv_ops = {
static const struct hv_ops hvc_iucv_ops = {
.get_chars = hvc_iucv_get_chars,
.put_chars = hvc_iucv_put_chars,
.notifier_add = hvc_iucv_notifier_add,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/hvc_rtas.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static int hvc_rtas_read_console(uint32_t vtermno, char *buf, int count)
return i;
}

static struct hv_ops hvc_rtas_get_put_ops = {
static const struct hv_ops hvc_rtas_get_put_ops = {
.get_chars = hvc_rtas_read_console,
.put_chars = hvc_rtas_write_console,
};
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/hvc_udbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static int hvc_udbg_get(uint32_t vtermno, char *buf, int count)
return i;
}

static struct hv_ops hvc_udbg_ops = {
static const struct hv_ops hvc_udbg_ops = {
.get_chars = hvc_udbg_get,
.put_chars = hvc_udbg_put,
};
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/hvc_vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static int filtered_get_chars(uint32_t vtermno, char *buf, int count)
return got;
}

static struct hv_ops hvc_get_put_ops = {
static const struct hv_ops hvc_get_put_ops = {
.get_chars = filtered_get_chars,
.put_chars = hvc_put_chars,
.notifier_add = notifier_add_irq,
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/hvc_xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static int read_console(uint32_t vtermno, char *buf, int len)
return recv;
}

static struct hv_ops hvc_ops = {
static const struct hv_ops hvc_ops = {
.get_chars = read_console,
.put_chars = write_console,
.notifier_add = notifier_add_irq,
Expand Down

0 comments on commit 0db5f85

Please sign in to comment.