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-sbp2.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-sbp2.c')
-rw-r--r-- | drivers/firewire/fw-sbp2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c index ce9c41ff0765..28acae8b01b3 100644 --- a/drivers/firewire/fw-sbp2.c +++ b/drivers/firewire/fw-sbp2.c | |||
@@ -681,7 +681,7 @@ static void sbp2_update(struct fw_unit *unit) | |||
681 | #define SBP2_UNIT_SPEC_ID_ENTRY 0x0000609e | 681 | #define SBP2_UNIT_SPEC_ID_ENTRY 0x0000609e |
682 | #define SBP2_SW_VERSION_ENTRY 0x00010483 | 682 | #define SBP2_SW_VERSION_ENTRY 0x00010483 |
683 | 683 | ||
684 | static struct fw_device_id sbp2_id_table[] = { | 684 | static const struct fw_device_id sbp2_id_table[] = { |
685 | { | 685 | { |
686 | .match_flags = FW_MATCH_SPECIFIER_ID | FW_MATCH_VERSION, | 686 | .match_flags = FW_MATCH_SPECIFIER_ID | FW_MATCH_VERSION, |
687 | .specifier_id = SBP2_UNIT_SPEC_ID_ENTRY, | 687 | .specifier_id = SBP2_UNIT_SPEC_ID_ENTRY, |