OSDN Git Service

[SERIAL] serial_cs: Use clean up multiport card detection
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 16 Sep 2006 19:53:05 +0000 (20:53 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 1 Oct 2006 16:06:20 +0000 (17:06 +0100)
commit43549ad7a74e33947f3ba1756a7713086d32e97c
tree4d3fd53cb901bc04000170ab1d1a04fd777a0172
parentde6cc84f723ab4373d1f83e64771392d6f784c81
[SERIAL] serial_cs: Use clean up multiport card detection

- Use ARRAY_SIZE() instead of home grown based version.
- use parse->manfid.card rather than le16_to_cpu(buf[1]) -
  manfid.card is already converted to this format.
- use info->prodid in subsequent tests rather than
  parse->manfid.card.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/serial_cs.c