mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-05-17 15:28:31 +00:00
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>
This commit is contained in:
committed by
Linus Torvalds
parent
02c83595b8
commit
6179b5562d
@@ -108,6 +108,11 @@ typedef struct dev_node_t {
|
||||
struct pcmcia_socket;
|
||||
struct config_t;
|
||||
|
||||
struct pcmcia_dynids {
|
||||
spinlock_t lock;
|
||||
struct list_head list;
|
||||
};
|
||||
|
||||
struct pcmcia_driver {
|
||||
int (*probe) (struct pcmcia_device *dev);
|
||||
void (*remove) (struct pcmcia_device *dev);
|
||||
@@ -118,6 +123,7 @@ struct pcmcia_driver {
|
||||
struct module *owner;
|
||||
struct pcmcia_device_id *id_table;
|
||||
struct device_driver drv;
|
||||
struct pcmcia_dynids dynids;
|
||||
};
|
||||
|
||||
/* driver registration */
|
||||
|
||||
Reference in New Issue
Block a user