firewire: add parent-of-unit accessor
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 6 Jun 2009 16:35:27 +0000 (18:35 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 6 Jun 2009 19:45:50 +0000 (21:45 +0200)
commite5110d011e03030926872457f05e49e3d5031737
tree09037ffddcea6f5b8b18ab20035904408d2869ea
parente71d31da062095d8b0b02a26fb5e8879e8d3d0de
firewire: add parent-of-unit accessor

Retrieval of an fw_unit's parent is a common pattern in high-level code.
Wrap it up as device = fw_parent_device(unit).

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-device.c
drivers/firewire/sbp2.c
include/linux/firewire.h