kernel-hacking-2024-linux-s.../sound/firewire
Stefan Richter 94a87157cd firewire: introduce fw_driver.probe and .remove methods
FireWire upper layer drivers are converted from generic
    struct driver.probe() and .remove()
to bus-specific
    struct fw_driver.probe() and .remove().

The new .probe() adds a const struct ieee1394_device_id *id argument,
indicating the entry in the driver's device identifiers table which
matched the fw_unit to be probed.  This new argument is used by the
snd-firewire-speakers driver to look up device-specific parameters and
methods.  There is at least one other FireWire audio driver currently in
development in which this will be useful too.

The new .remove() drops the unused error return code.

Although all in-tree drivers are being converted to the new methods,
support for the old methods is left in place in this commit.  This
allows public developer trees to merge this commit and then move to the
new fw_driver methods.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Acked-by: Clemens Ladisch <clemens@ladisch.de> (for sound/firewire/)
Cc: Peter Hurley <peter@hurleysoftware.com> (for drivers/staging/fwserial/)
2013-06-09 18:15:00 +02:00
..
amdtp.c ALSA: firewire-lib: optimize packet flushing 2012-05-14 10:43:43 +02:00
amdtp.h ALSA: firewire-lib: optimize packet flushing 2012-05-14 10:43:43 +02:00
cmp.c firewire: move rcode_string() to core 2012-04-17 22:54:55 +02:00
cmp.h
fcp.c
fcp.h
isight.c firewire: introduce fw_driver.probe and .remove methods 2013-06-09 18:15:00 +02:00
iso-resources.c sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed 2011-10-31 19:31:22 -04:00
iso-resources.h
Kconfig ALSA: firewire: add Stanton SCS.1d/1m driver 2012-11-12 11:45:35 +01:00
lib.c firewire: move rcode_string() to core 2012-04-17 22:54:55 +02:00
lib.h firewire: move rcode_string() to core 2012-04-17 22:54:55 +02:00
Makefile ALSA: firewire: add Stanton SCS.1d/1m driver 2012-11-12 11:45:35 +01:00
packets-buffer.c sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed 2011-10-31 19:31:22 -04:00
packets-buffer.h
scs1x.c firewire: introduce fw_driver.probe and .remove methods 2013-06-09 18:15:00 +02:00
speakers.c firewire: introduce fw_driver.probe and .remove methods 2013-06-09 18:15:00 +02:00