diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-01-14 09:29:07 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-03-09 16:02:39 -0500 |
commit | 21ebcd1224d05c8673053e1e93ab9ec7ef3e0b84 (patch) | |
tree | 1f6f1c05bc8c0fa814a2265ca8dbb24e92bdcab9 /drivers/firewire/fw-transaction.c | |
parent | 227e7d8194bd147484f6ae135a082ce22112b5b3 (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.c | 14 |
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, | |||
331 | static DEFINE_SPINLOCK(address_handler_lock); | 331 | static DEFINE_SPINLOCK(address_handler_lock); |
332 | static LIST_HEAD(address_handler_list); | 332 | static LIST_HEAD(address_handler_list); |
333 | 333 | ||
334 | struct fw_address_region fw_low_memory_region = | 334 | const struct fw_address_region fw_low_memory_region = |
335 | { 0x000000000000ull, 0x000100000000ull }; | 335 | { 0x000000000000ull, 0x000100000000ull }; |
336 | struct fw_address_region fw_high_memory_region = | 336 | const struct fw_address_region fw_high_memory_region = |
337 | { 0x000100000000ull, 0xffffe0000000ull }; | 337 | { 0x000100000000ull, 0xffffe0000000ull }; |
338 | struct fw_address_region fw_private_region = | 338 | const struct fw_address_region fw_private_region = |
339 | { 0xffffe0000000ull, 0xfffff0000000ull }; | 339 | { 0xffffe0000000ull, 0xfffff0000000ull }; |
340 | struct fw_address_region fw_csr_region = | 340 | const struct fw_address_region fw_csr_region = |
341 | { 0xfffff0000000ULL, 0xfffff0000800ull }; | 341 | { 0xfffff0000000ULL, 0xfffff0000800ull }; |
342 | struct fw_address_region fw_unit_space_region = | 342 | const struct fw_address_region fw_unit_space_region = |
343 | { 0xfffff0000900ull, 0x1000000000000ull }; | 343 | { 0xfffff0000900ull, 0x1000000000000ull }; |
344 | 344 | ||
345 | EXPORT_SYMBOL(fw_low_memory_region); | 345 | EXPORT_SYMBOL(fw_low_memory_region); |
@@ -358,7 +358,7 @@ EXPORT_SYMBOL(fw_unit_space_region); | |||
358 | 358 | ||
359 | int | 359 | int |
360 | fw_core_add_address_handler(struct fw_address_handler *handler, | 360 | fw_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>"); | |||
684 | MODULE_DESCRIPTION("Core IEEE1394 transaction logic"); | 684 | MODULE_DESCRIPTION("Core IEEE1394 transaction logic"); |
685 | MODULE_LICENSE("GPL"); | 685 | MODULE_LICENSE("GPL"); |
686 | 686 | ||
687 | static u32 vendor_textual_descriptor_data[] = { | 687 | static const u32 vendor_textual_descriptor_data[] = { |
688 | /* textual descriptor leaf () */ | 688 | /* textual descriptor leaf () */ |
689 | 0x00080000, | 689 | 0x00080000, |
690 | 0x00000000, | 690 | 0x00000000, |