Commit c64094684dad4a903099f1ff83b7db9b62782adc

Authored by Stefan Richter
1 parent 421696887b

ieee1394: constify device ID tables

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>

Showing 7 changed files with 8 additions and 8 deletions Side-by-side Diff

drivers/ieee1394/dv1394.c
... ... @@ -2175,7 +2175,7 @@
2175 2175 * Export information about protocols/devices supported by this driver.
2176 2176 */
2177 2177 #ifdef MODULE
2178   -static struct ieee1394_device_id dv1394_id_table[] = {
  2178 +static const struct ieee1394_device_id dv1394_id_table[] = {
2179 2179 {
2180 2180 .match_flags = IEEE1394_MATCH_SPECIFIER_ID | IEEE1394_MATCH_VERSION,
2181 2181 .specifier_id = AVC_UNIT_SPEC_ID_ENTRY & 0xffffff,
drivers/ieee1394/eth1394.c
... ... @@ -438,7 +438,7 @@
438 438 return eth1394_new_node(hi, ud);
439 439 }
440 440  
441   -static struct ieee1394_device_id eth1394_id_table[] = {
  441 +static const struct ieee1394_device_id eth1394_id_table[] = {
442 442 {
443 443 .match_flags = (IEEE1394_MATCH_SPECIFIER_ID |
444 444 IEEE1394_MATCH_VERSION),
drivers/ieee1394/nodemgr.c
... ... @@ -484,7 +484,7 @@
484 484 static ssize_t fw_show_drv_device_ids(struct device_driver *drv, char *buf)
485 485 {
486 486 struct hpsb_protocol_driver *driver;
487   - struct ieee1394_device_id *id;
  487 + const struct ieee1394_device_id *id;
488 488 int length = 0;
489 489 char *scratch = buf;
490 490  
... ... @@ -658,7 +658,7 @@
658 658 {
659 659 struct hpsb_protocol_driver *driver;
660 660 struct unit_directory *ud;
661   - struct ieee1394_device_id *id;
  661 + const struct ieee1394_device_id *id;
662 662  
663 663 /* We only match unit directories */
664 664 if (dev->platform_data != &nodemgr_ud_platform_data)
drivers/ieee1394/nodemgr.h
... ... @@ -125,7 +125,7 @@
125 125 * probe function below can implement further protocol
126 126 * dependent or vendor dependent checking.
127 127 */
128   - struct ieee1394_device_id *id_table;
  128 + const struct ieee1394_device_id *id_table;
129 129  
130 130 /*
131 131 * The update function is called when the node has just
drivers/ieee1394/raw1394.c
... ... @@ -2982,7 +2982,7 @@
2982 2982 * Export information about protocols/devices supported by this driver.
2983 2983 */
2984 2984 #ifdef MODULE
2985   -static struct ieee1394_device_id raw1394_id_table[] = {
  2985 +static const struct ieee1394_device_id raw1394_id_table[] = {
2986 2986 {
2987 2987 .match_flags = IEEE1394_MATCH_SPECIFIER_ID | IEEE1394_MATCH_VERSION,
2988 2988 .specifier_id = AVC_UNIT_SPEC_ID_ENTRY & 0xffffff,
drivers/ieee1394/sbp2.c
... ... @@ -285,7 +285,7 @@
285 285 /*
286 286 * Interface to driver core and IEEE 1394 core
287 287 */
288   -static struct ieee1394_device_id sbp2_id_table[] = {
  288 +static const struct ieee1394_device_id sbp2_id_table[] = {
289 289 {
290 290 .match_flags = IEEE1394_MATCH_SPECIFIER_ID | IEEE1394_MATCH_VERSION,
291 291 .specifier_id = SBP2_UNIT_SPEC_ID_ENTRY & 0xffffff,
drivers/ieee1394/video1394.c
... ... @@ -1294,7 +1294,7 @@
1294 1294 * Export information about protocols/devices supported by this driver.
1295 1295 */
1296 1296 #ifdef MODULE
1297   -static struct ieee1394_device_id video1394_id_table[] = {
  1297 +static const struct ieee1394_device_id video1394_id_table[] = {
1298 1298 {
1299 1299 .match_flags = IEEE1394_MATCH_SPECIFIER_ID | IEEE1394_MATCH_VERSION,
1300 1300 .specifier_id = CAMERA_UNIT_SPEC_ID_ENTRY & 0xffffff,