]> err.no Git - linux-2.6/commit
add new_id to PCMCIA drivers
authorBernhard Walle <bwalle@suse.de>
Sun, 6 May 2007 21:48:44 +0000 (14:48 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:12:50 +0000 (12:12 -0700)
commit6179b5562d5d17c7c09b54cb11dd925ca308d7a9
tree2f740d0f653678557a5601c6dffed1287b9aa513
parent02c83595b86480ee4d61665beb13f76685d40239
add new_id to PCMCIA drivers

PCI drivers have the new_id file in sysfs which allows new IDs to be added
at runtime.  The advantage is to avoid re-compilation of a driver that
works for a new device, but it's ID table doesn't contain the new device.
This mechanism is only meant for testing, after the driver has been tested
successfully, the ID should be added in source code so that new revisions
of the kernel automatically detect the device.

The implementation follows the PCI implementation. The interface is documented
in Documentation/pcmcia/driver.txt. Computations should be done in userspace,
so the sysfs string contains the raw structure members for matching.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/pcmcia/driver.txt [new file with mode: 0644]
drivers/pcmcia/ds.c
include/pcmcia/ds.h