diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-06-05 10:26:18 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-06-05 10:26:18 -0400 |
commit | 77c9a5daa9c4d9b37812c9c69c7bcbb3f9399c3c (patch) | |
tree | 54ea3c48e0663ef1b9f227ffff7710f0ea03f9a1 /drivers/firewire/fw-card.c | |
parent | e8ca97021c8eb127bb04aec4e2420e1d66be371d (diff) |
firewire: reorganize header files
The three header files of firewire-core, i.e.
"drivers/firewire/fw-device.h",
"drivers/firewire/fw-topology.h",
"drivers/firewire/fw-transaction.h",
are replaced by
"drivers/firewire/core.h",
"include/linux/firewire.h".
The latter includes everything which a firewire high-level driver (like
firewire-sbp2) needs besides linux/firewire-constants.h, while core.h
contains the rest which is needed by firewire-core itself and by low-
level drivers (card drivers) like firewire-ohci.
High-level drivers can now also reside outside of drivers/firewire
without having to add drivers/firewire to the header file search path in
makefiles. At least the firedtv driver will be such a driver.
I also considered to spread the contents of core.h over several files,
one for each .c file where the respective implementation resides. But
it turned out that most core .c files will end up including most of the
core .h files. Also, the combined core.h isn't unreasonably big, and it
will lose more of its contents to linux/firewire.h anyway soon when more
firewire drivers are added. (IP-over-1394, firedtv, and there are plans
for one or two more.)
Furthermore, fw-ohci.h is renamed to ohci.h. The name of core.h and
ohci.h is chosen with regard to name changes of the .c files in a
follow-up change.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-card.c')
-rw-r--r-- | drivers/firewire/fw-card.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/firewire/fw-card.c b/drivers/firewire/fw-card.c index b6f55e262e7f..ba6cd70b8518 100644 --- a/drivers/firewire/fw-card.c +++ b/drivers/firewire/fw-card.c | |||
@@ -21,6 +21,8 @@ | |||
21 | #include <linux/crc-itu-t.h> | 21 | #include <linux/crc-itu-t.h> |
22 | #include <linux/device.h> | 22 | #include <linux/device.h> |
23 | #include <linux/errno.h> | 23 | #include <linux/errno.h> |
24 | #include <linux/firewire.h> | ||
25 | #include <linux/firewire-constants.h> | ||
24 | #include <linux/jiffies.h> | 26 | #include <linux/jiffies.h> |
25 | #include <linux/kernel.h> | 27 | #include <linux/kernel.h> |
26 | #include <linux/kref.h> | 28 | #include <linux/kref.h> |
@@ -34,9 +36,7 @@ | |||
34 | #include <asm/atomic.h> | 36 | #include <asm/atomic.h> |
35 | #include <asm/byteorder.h> | 37 | #include <asm/byteorder.h> |
36 | 38 | ||
37 | #include "fw-device.h" | 39 | #include "core.h" |
38 | #include "fw-topology.h" | ||
39 | #include "fw-transaction.h" | ||
40 | 40 | ||
41 | int fw_compute_block_crc(u32 *block) | 41 | int fw_compute_block_crc(u32 *block) |
42 | { | 42 | { |