aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-transaction.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-transaction.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-transaction.c')
-rw-r--r--drivers/firewire/fw-transaction.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/firewire/fw-transaction.c b/drivers/firewire/fw-transaction.c
index affd42014a67..a72f50288c0a 100644
--- a/drivers/firewire/fw-transaction.c
+++ b/drivers/firewire/fw-transaction.c
@@ -331,15 +331,15 @@ lookup_enclosing_address_handler(struct list_head *list,
331static DEFINE_SPINLOCK(address_handler_lock); 331static DEFINE_SPINLOCK(address_handler_lock);
332static LIST_HEAD(address_handler_list); 332static LIST_HEAD(address_handler_list);
333 333
334struct fw_address_region fw_low_memory_region = 334const struct fw_address_region fw_low_memory_region =
335 { 0x000000000000ull, 0x000100000000ull }; 335 { 0x000000000000ull, 0x000100000000ull };
336struct fw_address_region fw_high_memory_region = 336const struct fw_address_region fw_high_memory_region =
337 { 0x000100000000ull, 0xffffe0000000ull }; 337 { 0x000100000000ull, 0xffffe0000000ull };
338struct fw_address_region fw_private_region = 338const struct fw_address_region fw_private_region =
339 { 0xffffe0000000ull, 0xfffff0000000ull }; 339 { 0xffffe0000000ull, 0xfffff0000000ull };
340struct fw_address_region fw_csr_region = 340const struct fw_address_region fw_csr_region =
341 { 0xfffff0000000ULL, 0xfffff0000800ull }; 341 { 0xfffff0000000ULL, 0xfffff0000800ull };
342struct fw_address_region fw_unit_space_region = 342const struct fw_address_region fw_unit_space_region =
343 { 0xfffff0000900ull, 0x1000000000000ull }; 343 { 0xfffff0000900ull, 0x1000000000000ull };
344 344
345EXPORT_SYMBOL(fw_low_memory_region); 345EXPORT_SYMBOL(fw_low_memory_region);
@@ -358,7 +358,7 @@ EXPORT_SYMBOL(fw_unit_space_region);
358 358
359int 359int
360fw_core_add_address_handler(struct fw_address_handler *handler, 360fw_core_add_address_handler(struct fw_address_handler *handler,
361 struct fw_address_region *region) 361 const struct fw_address_region *region)
362{ 362{
363 struct fw_address_handler *other; 363 struct fw_address_handler *other;
364 unsigned long flags; 364 unsigned long flags;
@@ -684,7 +684,7 @@ MODULE_AUTHOR("Kristian Hoegsberg <krh@bitplanet.net>");
684MODULE_DESCRIPTION("Core IEEE1394 transaction logic"); 684MODULE_DESCRIPTION("Core IEEE1394 transaction logic");
685MODULE_LICENSE("GPL"); 685MODULE_LICENSE("GPL");
686 686
687static u32 vendor_textual_descriptor_data[] = { 687static const u32 vendor_textual_descriptor_data[] = {
688 /* textual descriptor leaf () */ 688 /* textual descriptor leaf () */
689 0x00080000, 689 0x00080000,
690 0x00000000, 690 0x00000000,