]> git.neil.brown.name Git - history.git/commitdiff
[PNPBIOS] parse asci text name
authorAdam Belay <ambx1@neo.rr.com>
Wed, 14 Apr 2004 04:24:50 +0000 (04:24 +0000)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 14 Apr 2004 04:24:50 +0000 (04:24 +0000)
This patch fixes the unknown tag warning by adding support for the asci text
tag.

drivers/pnp/pnpbios/rsparser.c

index 758d6804f0ff9e4e841ed636ea8ff800d6b33829..f990065e19f0fb913f23aae5f72315b5dde1d937 100644 (file)
@@ -505,6 +505,11 @@ pnpbios_parse_compatible_ids(unsigned char *p, unsigned char *end, struct pnp_de
 
                switch (tag) {
 
+               case LARGE_TAG_ANSISTR:
+                       strncpy(dev->name, p + 3, len >= PNP_NAME_LEN ? PNP_NAME_LEN - 2 : len);
+                       dev->name[len >= PNP_NAME_LEN ? PNP_NAME_LEN - 1 : len] = '\0';
+                       break;
+
                case SMALL_TAG_COMPATDEVID: /* compatible ID */
                        if (len != 4)
                                goto len_err;