summaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-device-cdev.c
diff options
context:
space:
mode:
authorStefan Richter2007-01-14 15:29:07 +0100
committerStefan Richter2007-03-09 22:02:39 +0100
commit21ebcd1224d05c8673053e1e93ab9ec7ef3e0b84 (patch)
tree1f6f1c05bc8c0fa814a2265ca8dbb24e92bdcab9 /drivers/firewire/fw-device-cdev.c
parentfirewire: additional help in Kconfig (diff)
downloadkernel-qcow2-linux-21ebcd1224d05c8673053e1e93ab9ec7ef3e0b84.tar.gz
kernel-qcow2-linux-21ebcd1224d05c8673053e1e93ab9ec7ef3e0b84.tar.xz
kernel-qcow2-linux-21ebcd1224d05c8673053e1e93ab9ec7ef3e0b84.zip
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-cdev.c')
-rw-r--r--drivers/firewire/fw-device-cdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/fw-device-cdev.c b/drivers/firewire/fw-device-cdev.c
index c10e3326abf3..117bc6db54af 100644
--- a/drivers/firewire/fw-device-cdev.c
+++ b/drivers/firewire/fw-device-cdev.c
@@ -602,7 +602,7 @@ static unsigned int fw_device_op_poll(struct file *file, poll_table * pt)
return 0;
}
-struct file_operations fw_device_ops = {
+const struct file_operations fw_device_ops = {
.owner = THIS_MODULE,
.open = fw_device_op_open,
.read = fw_device_op_read,