aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-card.c
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2007-01-14 09:29:07 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-03-09 16:02:39 -0500
commit21ebcd1224d05c8673053e1e93ab9ec7ef3e0b84 (patch)
tree1f6f1c05bc8c0fa814a2265ca8dbb24e92bdcab9 /drivers/firewire/fw-card.c
parent227e7d8194bd147484f6ae135a082ce22112b5b3 (diff)
firewire: mark some structs const
Instances of struct file_operations and struct fw_card_driver can be qualified as "const". Ditto with struct fw_descriptor.data, struct fw_device_id, and predefined instances of struct fw_address_region, at least in the current implementation. Data qualified as const is placed into the .rodata section which won't be mixed with dirty data. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/fw-card.c b/drivers/firewire/fw-card.c
index 79773907e10d..82a92432bcb7 100644
--- a/drivers/firewire/fw-card.c
+++ b/drivers/firewire/fw-card.c
@@ -257,7 +257,7 @@ flush_timer_callback(unsigned long data)
257} 257}
258 258
259void 259void
260fw_card_initialize(struct fw_card *card, struct fw_card_driver *driver, 260fw_card_initialize(struct fw_card *card, const struct fw_card_driver *driver,
261 struct device *device) 261 struct device *device)
262{ 262{
263 static int index; 263 static int index;