]> err.no Git - linux-2.6/commit
[ISDN] Hisax: eliminate many unnecessary references to CardType[]
authorJeff Garzik <jeff@garzik.org>
Wed, 31 Oct 2007 07:42:07 +0000 (03:42 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Sun, 20 Apr 2008 22:22:31 +0000 (18:22 -0400)
commit8349304d12cf1313bdbd6eb2083701d86809be24
tree599d43c202cda35b80966d9f364559484ca4145a
parentd38c8475b4f3a684ac673dcedc88ffdb17b74882
[ISDN] Hisax: eliminate many unnecessary references to CardType[]

For the vast majority of CardType[card->typ] uses (but not all!),
the string is constant for each driver.  Therefore, we may replace
CardType[card->typ] with the actual string describing the driver, making
each printk() a bit more simple.

This also has the nice, intended side effect of greatly reducing
external references to hisax global CardType[].  This will be of value
once the ISDN drivers are converted to the ISA/PCI/PNP hotplug APIs.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
20 files changed:
drivers/isdn/hisax/asuscom.c
drivers/isdn/hisax/avm_a1.c
drivers/isdn/hisax/bkm_a4t.c
drivers/isdn/hisax/bkm_a8.c
drivers/isdn/hisax/gazel.c
drivers/isdn/hisax/hfc_pci.c
drivers/isdn/hisax/hfc_sx.c
drivers/isdn/hisax/isurf.c
drivers/isdn/hisax/ix1_micro.c
drivers/isdn/hisax/mic.c
drivers/isdn/hisax/netjet.h
drivers/isdn/hisax/niccy.c
drivers/isdn/hisax/nj_s.c
drivers/isdn/hisax/nj_u.c
drivers/isdn/hisax/s0box.c
drivers/isdn/hisax/saphir.c
drivers/isdn/hisax/sportster.c
drivers/isdn/hisax/teleint.c
drivers/isdn/hisax/telespci.c
drivers/isdn/hisax/w6692.c