]> git.karo-electronics.de Git - karo-tx-linux.git/commit
firewire: Move fw_card kref functions into linux/firewire.h
authorChris Boot <bootc@bootc.net>
Wed, 1 Feb 2012 22:36:02 +0000 (22:36 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 15 Apr 2012 01:03:58 +0000 (18:03 -0700)
commit5d058bce464b6968893fd71673fe150252d54771
tree332b3c99bdce5aaf83b0f8844ac30ced850cc77b
parentbfca8cf361337b835ffe31e8872762686fbb017e
firewire: Move fw_card kref functions into linux/firewire.h

When writing a firewire driver that doesn't deal with struct fw_device
objects (e.g. it only publishes FireWire units and doesn't subscribe to
them), you likely need to keep referenced to struct fw_card objects so
that you can send messages to other nodes. This patch moves
fw_card_put(), fw_card_get() and fw_card_release() into the public
include/linux/firewire.h header instead of drivers/firewire/core.h, and
adds EXPORT_SYMBOL_GPL(fw_card_release).

The firewire-sbp-target module requires these so it can keep a reference
to the fw_card object in order that it can fetch ORBs to execute and
read/write related data and status information.

Signed-off-by: Chris Boot <bootc@bootc.net>
Acked-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/firewire/core-card.c
drivers/firewire/core.h
include/linux/firewire.h