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:
Ed Schouten 2008-10-27 11:45:31 +00:00
parent 2e9f7f6840
commit c8978106d0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184329
4 changed files with 2 additions and 8 deletions

View file

@ -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

View file

@ -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

View file

@ -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);
}

View file

@ -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 */
};