Remove unused consdev structure fields.
The cn_unit and cn_tp fields don't seem to be used anywhere. Some drivers set them, while others don't. Just remove them, in an attempt to make our consdev code a little easier to understand.
This commit is contained in:
parent
2e9f7f6840
commit
c8978106d0
@ -173,8 +173,7 @@ static void
|
||||
cfe_cninit(struct consdev *cp)
|
||||
{
|
||||
|
||||
sprintf(cp->cn_name, "cfecons");
|
||||
cp->cn_tp = cfe_tp;
|
||||
strcpy(cp->cn_name, "cfecons");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -60,7 +60,6 @@ static struct ttydevsw ofw_ttydevsw = {
|
||||
.tsw_outwakeup = ofwtty_outwakeup,
|
||||
};
|
||||
|
||||
static struct tty *ofw_tp = NULL;
|
||||
static int polltime;
|
||||
static struct callout_handle ofw_timeouthandle
|
||||
= CALLOUT_HANDLE_INITIALIZER(&ofw_timeouthandle);
|
||||
@ -186,8 +185,7 @@ ofw_cninit(struct consdev *cp)
|
||||
{
|
||||
|
||||
/* XXX: This is the alias, but that should be good enough */
|
||||
sprintf(cp->cn_name, "ofwcons");
|
||||
cp->cn_tp = ofw_tp;
|
||||
strcpy(cp->cn_name, "ofwcons");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -107,7 +107,6 @@ static void
|
||||
xccnprobe(struct consdev *cp)
|
||||
{
|
||||
cp->cn_pri = CN_REMOTE;
|
||||
cp->cn_tp = xccons;
|
||||
sprintf(cp->cn_name, "%s0", driver_name);
|
||||
}
|
||||
|
||||
|
@ -61,10 +61,8 @@ struct consdev {
|
||||
/* kernel "return char if available" interface */
|
||||
cn_putc_t *cn_putc;
|
||||
/* kernel putchar interface */
|
||||
struct tty *cn_tp; /* tty structure for console device */
|
||||
short cn_pri; /* pecking order; the higher the better */
|
||||
void *cn_arg; /* drivers method argument */
|
||||
int cn_unit; /* some drivers prefer this */
|
||||
int cn_flags; /* capabilities of this console */
|
||||
char cn_name[SPECNAMELEN + 1]; /* console (device) name */
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user