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>
Showing
- drivers/firewire/fw-card.c 1 addition, 1 deletiondrivers/firewire/fw-card.c
- drivers/firewire/fw-device-cdev.c 1 addition, 1 deletiondrivers/firewire/fw-device-cdev.c
- drivers/firewire/fw-device.c 1 addition, 1 deletiondrivers/firewire/fw-device.c
- drivers/firewire/fw-device.h 2 additions, 2 deletionsdrivers/firewire/fw-device.h
- drivers/firewire/fw-ohci.c 1 addition, 1 deletiondrivers/firewire/fw-ohci.c
- drivers/firewire/fw-sbp2.c 1 addition, 1 deletiondrivers/firewire/fw-sbp2.c
- drivers/firewire/fw-transaction.c 7 additions, 7 deletionsdrivers/firewire/fw-transaction.c
- drivers/firewire/fw-transaction.h 9 additions, 9 deletionsdrivers/firewire/fw-transaction.h
Loading
Please register or sign in to comment