You are completely correct, no it's not legit.
I don't think that 'card_idx' is a good way to associate an interface to
an instance of a PCI driver however... A driver is well within its
rights to export more than one interface to the world, for example a
complex block device driver might export a character device for control
purposes, so you don't even have a one-one correspondence between PCI
driver instances and interfaces...
-- Jeff Garzik | Nothing cures insomnia like the Building 1024 | realization that it's time to get up. MandrakeSoft, Inc. | -- random fortune- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/