diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-12-25 19:44:10 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-12-29 13:58:17 -0500 |
commit | 13b302d0a217580c0129b0641b0ca8b592e437b0 (patch) | |
tree | aa895bb410b4262d9942a0f77fe623c7d610da0c /include/linux/firewire.h | |
parent | 3c2c58cb33b3b15a2c4871babeec8fe1456e1db6 (diff) |
firewire: qualify config ROM cache pointers as const pointers
Several config ROM related functions only peek at the ROM cache; mark
their arguments as const pointers. Ditto fw_device.config_rom and
fw_unit.directory, as the memory behind them is meant to be write-once.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'include/linux/firewire.h')
-rw-r--r-- | include/linux/firewire.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/firewire.h b/include/linux/firewire.h index df680216e7b6..4bd94bf5e739 100644 --- a/include/linux/firewire.h +++ b/include/linux/firewire.h | |||
@@ -65,13 +65,13 @@ | |||
65 | #define CSR_DIRECTORY_ID 0x20 | 65 | #define CSR_DIRECTORY_ID 0x20 |
66 | 66 | ||
67 | struct fw_csr_iterator { | 67 | struct fw_csr_iterator { |
68 | u32 *p; | 68 | const u32 *p; |
69 | u32 *end; | 69 | const u32 *end; |
70 | }; | 70 | }; |
71 | 71 | ||
72 | void fw_csr_iterator_init(struct fw_csr_iterator *ci, u32 *p); | 72 | void fw_csr_iterator_init(struct fw_csr_iterator *ci, const u32 *p); |
73 | int fw_csr_iterator_next(struct fw_csr_iterator *ci, int *key, int *value); | 73 | int fw_csr_iterator_next(struct fw_csr_iterator *ci, int *key, int *value); |
74 | int fw_csr_string(u32 *directory, int key, char *buf, size_t size); | 74 | int fw_csr_string(const u32 *directory, int key, char *buf, size_t size); |
75 | 75 | ||
76 | extern struct bus_type fw_bus_type; | 76 | extern struct bus_type fw_bus_type; |
77 | 77 | ||
@@ -163,7 +163,7 @@ struct fw_device { | |||
163 | struct mutex client_list_mutex; | 163 | struct mutex client_list_mutex; |
164 | struct list_head client_list; | 164 | struct list_head client_list; |
165 | 165 | ||
166 | u32 *config_rom; | 166 | const u32 *config_rom; |
167 | size_t config_rom_length; | 167 | size_t config_rom_length; |
168 | int config_rom_retries; | 168 | int config_rom_retries; |
169 | unsigned is_local:1; | 169 | unsigned is_local:1; |
@@ -205,7 +205,7 @@ int fw_device_enable_phys_dma(struct fw_device *device); | |||
205 | */ | 205 | */ |
206 | struct fw_unit { | 206 | struct fw_unit { |
207 | struct device device; | 207 | struct device device; |
208 | u32 *directory; | 208 | const u32 *directory; |
209 | struct fw_attribute_group attribute_group; | 209 | struct fw_attribute_group attribute_group; |
210 | }; | 210 | }; |
211 | 211 | ||