aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-device.h
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-device.h
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-device.h')
-rw-r--r--drivers/firewire/fw-device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/firewire/fw-device.h b/drivers/firewire/fw-device.h
index 731abbe5330b..f39cf6ae6253 100644
--- a/drivers/firewire/fw-device.h
+++ b/drivers/firewire/fw-device.h
@@ -113,7 +113,7 @@ struct fw_driver {
113 struct device_driver driver; 113 struct device_driver driver;
114 /* Called when the parent device sits through a bus reset. */ 114 /* Called when the parent device sits through a bus reset. */
115 void (*update) (struct fw_unit *unit); 115 void (*update) (struct fw_unit *unit);
116 struct fw_device_id *id_table; 116 const struct fw_device_id *id_table;
117}; 117};
118 118
119static inline struct fw_driver * 119static inline struct fw_driver *
@@ -122,6 +122,6 @@ fw_driver(struct device_driver *drv)
122 return container_of(drv, struct fw_driver, driver); 122 return container_of(drv, struct fw_driver, driver);
123} 123}
124 124
125extern struct file_operations fw_device_ops; 125extern const struct file_operations fw_device_ops;
126 126
127#endif /* __fw_device_h */ 127#endif /* __fw_device_h */