diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-09-06 12:49:48 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-09-12 08:48:40 -0400 |
commit | 18668ff9a3232d5f942a2f7abc1ad67d2760dcdf (patch) | |
tree | 251594c51144f5993b0975c5fb4ba9f200e5c79f /drivers/firewire | |
parent | 928ec5f148e729076e9202e7c78babede628a50c (diff) |
firewire: core: header file cleanup
fw_card_get, fw_card_put, fw_card_release are currently not exported for
use outside the firewire-core. Move their definitions/ declarations
from the subsystem header file to the core header file.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/core.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/firewire/core.h b/drivers/firewire/core.h index 6052816be353..7ff6e7585152 100644 --- a/drivers/firewire/core.h +++ b/drivers/firewire/core.h | |||
@@ -96,6 +96,20 @@ int fw_core_initiate_bus_reset(struct fw_card *card, int short_reset); | |||
96 | int fw_compute_block_crc(u32 *block); | 96 | int fw_compute_block_crc(u32 *block); |
97 | void fw_schedule_bm_work(struct fw_card *card, unsigned long delay); | 97 | void fw_schedule_bm_work(struct fw_card *card, unsigned long delay); |
98 | 98 | ||
99 | static inline struct fw_card *fw_card_get(struct fw_card *card) | ||
100 | { | ||
101 | kref_get(&card->kref); | ||
102 | |||
103 | return card; | ||
104 | } | ||
105 | |||
106 | void fw_card_release(struct kref *kref); | ||
107 | |||
108 | static inline void fw_card_put(struct fw_card *card) | ||
109 | { | ||
110 | kref_put(&card->kref, fw_card_release); | ||
111 | } | ||
112 | |||
99 | 113 | ||
100 | /* -cdev */ | 114 | /* -cdev */ |
101 | 115 | ||