firewire: add fw_csr_string() helper function
authorClemens Ladisch <clemens@ladisch.de>
Thu, 24 Dec 2009 10:59:57 +0000 (11:59 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 29 Dec 2009 18:58:17 +0000 (19:58 +0100)
commit1f8fef7b3388b5a976e80839679b5bae581a1091
tree40ce4828cee287d6e54f627df787f8d993a21b1e
parent5d7db0499e5bb13381a7fbfdd0d913b966545e75
firewire: add fw_csr_string() helper function

The core (sysfs attributes), the firedtv driver, and possible future
drivers all read strings from some configuration ROM directory.  Factor
out the generic code from show_text_leaf() into a new helper function,
modified slightly to handle arbitrary buffer sizes.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-device.c
drivers/media/dvb/firewire/firedtv-fw.c
include/linux/firewire.h