allow to wildcard the serial channel
This commit is contained in:
parent
0247fe44f6
commit
29dd0803eb
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: zsms.c,v 1.4 1999/09/19 14:45:47 drochner Exp $ */
|
||||
/* $NetBSD: zsms.c,v 1.5 1999/10/26 18:20:44 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -135,10 +135,14 @@ zsms_match(parent, cf, aux)
|
|||
{
|
||||
struct zsc_attach_args *args = aux;
|
||||
|
||||
/* Exact match required for keyboard. */
|
||||
/* Exact match is better than wildcard. */
|
||||
if (cf->cf_loc[ZSCCF_CHANNEL] == args->channel)
|
||||
return 2;
|
||||
|
||||
/* This driver accepts wildcard. */
|
||||
if (cf->cf_loc[ZSCCF_CHANNEL] == ZSCCF_CHANNEL_DEFAULT)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue