]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: reorganize header files
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 5 Jun 2009 14:26:18 +0000 (16:26 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 5 Jun 2009 14:26:18 +0000 (16:26 +0200)
commit32adb135f13ab1fa4368d1e69023c9b07e0e8c66
tree54ea3c48e0663ef1b9f227ffff7710f0ea03f9a1
parent45f06120de1a0d315c83f0c48a9ced39a91ba85c
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>
15 files changed:
drivers/firewire/core.h [new file with mode: 0644]
drivers/firewire/fw-card.c
drivers/firewire/fw-cdev.c
drivers/firewire/fw-device.c
drivers/firewire/fw-device.h [deleted file]
drivers/firewire/fw-iso.c
drivers/firewire/fw-ohci.c
drivers/firewire/fw-ohci.h [deleted file]
drivers/firewire/fw-sbp2.c
drivers/firewire/fw-topology.c
drivers/firewire/fw-topology.h [deleted file]
drivers/firewire/fw-transaction.c
drivers/firewire/fw-transaction.h [deleted file]
drivers/firewire/ohci.h [new file with mode: 0644]
include/linux/firewire.h [new file with mode: 0644]