diff options
author | Márton Németh <nm127@freemail.hu> | 2009-12-10 09:31:09 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-15 21:18:48 -0500 |
commit | 37b372e5ebe187037e01885151a0afb546a38520 (patch) | |
tree | 54d6d6ba0dca57f968b697d5827eb22cc99a224b /drivers/media | |
parent | 422eaac5d5367bab71fa2cc33393b2ea894498fe (diff) |
V4L/DVB (13621): gspca - some subdrivers: Make device_table[]s constant.
Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/gspca/conex.c | 4 | ||||
-rw-r--r-- | drivers/media/video/gspca/etoms.c | 4 | ||||
-rw-r--r-- | drivers/media/video/gspca/pac7302.c | 4 | ||||
-rw-r--r-- | drivers/media/video/gspca/pac7311.c | 4 | ||||
-rw-r--r-- | drivers/media/video/gspca/sonixb.c | 4 | ||||
-rw-r--r-- | drivers/media/video/gspca/spca506.c | 4 |
6 files changed, 12 insertions, 12 deletions
diff --git a/drivers/media/video/gspca/conex.c b/drivers/media/video/gspca/conex.c index 2f0b8d621e00..c98b5d69c438 100644 --- a/drivers/media/video/gspca/conex.c +++ b/drivers/media/video/gspca/conex.c | |||
@@ -1046,14 +1046,14 @@ static struct sd_desc sd_desc = { | |||
1046 | }; | 1046 | }; |
1047 | 1047 | ||
1048 | /* -- module initialisation -- */ | 1048 | /* -- module initialisation -- */ |
1049 | static __devinitdata struct usb_device_id device_table[] = { | 1049 | static const struct usb_device_id device_table[] __devinitconst = { |
1050 | {USB_DEVICE(0x0572, 0x0041)}, | 1050 | {USB_DEVICE(0x0572, 0x0041)}, |
1051 | {} | 1051 | {} |
1052 | }; | 1052 | }; |
1053 | MODULE_DEVICE_TABLE(usb, device_table); | 1053 | MODULE_DEVICE_TABLE(usb, device_table); |
1054 | 1054 | ||
1055 | /* -- device connect -- */ | 1055 | /* -- device connect -- */ |
1056 | static int sd_probe(struct usb_interface *intf, | 1056 | static int __devinit sd_probe(struct usb_interface *intf, |
1057 | const struct usb_device_id *id) | 1057 | const struct usb_device_id *id) |
1058 | { | 1058 | { |
1059 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), | 1059 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), |
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c index 9de86419ae1e..fdf4c0ec5e7a 100644 --- a/drivers/media/video/gspca/etoms.c +++ b/drivers/media/video/gspca/etoms.c | |||
@@ -864,7 +864,7 @@ static struct sd_desc sd_desc = { | |||
864 | }; | 864 | }; |
865 | 865 | ||
866 | /* -- module initialisation -- */ | 866 | /* -- module initialisation -- */ |
867 | static __devinitdata struct usb_device_id device_table[] = { | 867 | static const struct usb_device_id device_table[] __devinitconst = { |
868 | {USB_DEVICE(0x102c, 0x6151), .driver_info = SENSOR_PAS106}, | 868 | {USB_DEVICE(0x102c, 0x6151), .driver_info = SENSOR_PAS106}, |
869 | #if !defined CONFIG_USB_ET61X251 && !defined CONFIG_USB_ET61X251_MODULE | 869 | #if !defined CONFIG_USB_ET61X251 && !defined CONFIG_USB_ET61X251_MODULE |
870 | {USB_DEVICE(0x102c, 0x6251), .driver_info = SENSOR_TAS5130CXX}, | 870 | {USB_DEVICE(0x102c, 0x6251), .driver_info = SENSOR_TAS5130CXX}, |
@@ -875,7 +875,7 @@ static __devinitdata struct usb_device_id device_table[] = { | |||
875 | MODULE_DEVICE_TABLE(usb, device_table); | 875 | MODULE_DEVICE_TABLE(usb, device_table); |
876 | 876 | ||
877 | /* -- device connect -- */ | 877 | /* -- device connect -- */ |
878 | static int sd_probe(struct usb_interface *intf, | 878 | static int __devinit sd_probe(struct usb_interface *intf, |
879 | const struct usb_device_id *id) | 879 | const struct usb_device_id *id) |
880 | { | 880 | { |
881 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), | 881 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), |
diff --git a/drivers/media/video/gspca/pac7302.c b/drivers/media/video/gspca/pac7302.c index e128514733d9..de0b66c4b56e 100644 --- a/drivers/media/video/gspca/pac7302.c +++ b/drivers/media/video/gspca/pac7302.c | |||
@@ -1229,7 +1229,7 @@ static struct sd_desc sd_desc = { | |||
1229 | }; | 1229 | }; |
1230 | 1230 | ||
1231 | /* -- module initialisation -- */ | 1231 | /* -- module initialisation -- */ |
1232 | static __devinitdata struct usb_device_id device_table[] = { | 1232 | static const struct usb_device_id device_table[] __devinitconst = { |
1233 | {USB_DEVICE(0x06f8, 0x3009)}, | 1233 | {USB_DEVICE(0x06f8, 0x3009)}, |
1234 | {USB_DEVICE(0x093a, 0x2620)}, | 1234 | {USB_DEVICE(0x093a, 0x2620)}, |
1235 | {USB_DEVICE(0x093a, 0x2621)}, | 1235 | {USB_DEVICE(0x093a, 0x2621)}, |
@@ -1245,7 +1245,7 @@ static __devinitdata struct usb_device_id device_table[] = { | |||
1245 | MODULE_DEVICE_TABLE(usb, device_table); | 1245 | MODULE_DEVICE_TABLE(usb, device_table); |
1246 | 1246 | ||
1247 | /* -- device connect -- */ | 1247 | /* -- device connect -- */ |
1248 | static int sd_probe(struct usb_interface *intf, | 1248 | static int __devinit sd_probe(struct usb_interface *intf, |
1249 | const struct usb_device_id *id) | 1249 | const struct usb_device_id *id) |
1250 | { | 1250 | { |
1251 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), | 1251 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), |
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c index e5697a6345e8..42cfcdfd8f4f 100644 --- a/drivers/media/video/gspca/pac7311.c +++ b/drivers/media/video/gspca/pac7311.c | |||
@@ -863,7 +863,7 @@ static struct sd_desc sd_desc = { | |||
863 | }; | 863 | }; |
864 | 864 | ||
865 | /* -- module initialisation -- */ | 865 | /* -- module initialisation -- */ |
866 | static __devinitdata struct usb_device_id device_table[] = { | 866 | static const struct usb_device_id device_table[] __devinitconst = { |
867 | {USB_DEVICE(0x093a, 0x2600)}, | 867 | {USB_DEVICE(0x093a, 0x2600)}, |
868 | {USB_DEVICE(0x093a, 0x2601)}, | 868 | {USB_DEVICE(0x093a, 0x2601)}, |
869 | {USB_DEVICE(0x093a, 0x2603)}, | 869 | {USB_DEVICE(0x093a, 0x2603)}, |
@@ -875,7 +875,7 @@ static __devinitdata struct usb_device_id device_table[] = { | |||
875 | MODULE_DEVICE_TABLE(usb, device_table); | 875 | MODULE_DEVICE_TABLE(usb, device_table); |
876 | 876 | ||
877 | /* -- device connect -- */ | 877 | /* -- device connect -- */ |
878 | static int sd_probe(struct usb_interface *intf, | 878 | static int __devinit sd_probe(struct usb_interface *intf, |
879 | const struct usb_device_id *id) | 879 | const struct usb_device_id *id) |
880 | { | 880 | { |
881 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), | 881 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), |
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c index 5be95bc65138..ddff2b5ee5c2 100644 --- a/drivers/media/video/gspca/sonixb.c +++ b/drivers/media/video/gspca/sonixb.c | |||
@@ -1226,7 +1226,7 @@ static const struct sd_desc sd_desc = { | |||
1226 | .driver_info = (SENSOR_ ## sensor << 8) | BRIDGE_ ## bridge | 1226 | .driver_info = (SENSOR_ ## sensor << 8) | BRIDGE_ ## bridge |
1227 | 1227 | ||
1228 | 1228 | ||
1229 | static __devinitdata struct usb_device_id device_table[] = { | 1229 | static const struct usb_device_id device_table[] __devinitconst = { |
1230 | {USB_DEVICE(0x0c45, 0x6001), SB(TAS5110, 102)}, /* TAS5110C1B */ | 1230 | {USB_DEVICE(0x0c45, 0x6001), SB(TAS5110, 102)}, /* TAS5110C1B */ |
1231 | {USB_DEVICE(0x0c45, 0x6005), SB(TAS5110, 101)}, /* TAS5110C1B */ | 1231 | {USB_DEVICE(0x0c45, 0x6005), SB(TAS5110, 101)}, /* TAS5110C1B */ |
1232 | #if !defined CONFIG_USB_SN9C102 && !defined CONFIG_USB_SN9C102_MODULE | 1232 | #if !defined CONFIG_USB_SN9C102 && !defined CONFIG_USB_SN9C102_MODULE |
@@ -1257,7 +1257,7 @@ static __devinitdata struct usb_device_id device_table[] = { | |||
1257 | MODULE_DEVICE_TABLE(usb, device_table); | 1257 | MODULE_DEVICE_TABLE(usb, device_table); |
1258 | 1258 | ||
1259 | /* -- device connect -- */ | 1259 | /* -- device connect -- */ |
1260 | static int sd_probe(struct usb_interface *intf, | 1260 | static int __devinit sd_probe(struct usb_interface *intf, |
1261 | const struct usb_device_id *id) | 1261 | const struct usb_device_id *id) |
1262 | { | 1262 | { |
1263 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), | 1263 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), |
diff --git a/drivers/media/video/gspca/spca506.c b/drivers/media/video/gspca/spca506.c index ab28cc23e415..39257e4e074f 100644 --- a/drivers/media/video/gspca/spca506.c +++ b/drivers/media/video/gspca/spca506.c | |||
@@ -685,7 +685,7 @@ static struct sd_desc sd_desc = { | |||
685 | }; | 685 | }; |
686 | 686 | ||
687 | /* -- module initialisation -- */ | 687 | /* -- module initialisation -- */ |
688 | static __devinitdata struct usb_device_id device_table[] = { | 688 | static const struct usb_device_id device_table[] __devinitconst = { |
689 | {USB_DEVICE(0x06e1, 0xa190)}, | 689 | {USB_DEVICE(0x06e1, 0xa190)}, |
690 | /*fixme: may be IntelPCCameraPro BRIDGE_SPCA505 | 690 | /*fixme: may be IntelPCCameraPro BRIDGE_SPCA505 |
691 | {USB_DEVICE(0x0733, 0x0430)}, */ | 691 | {USB_DEVICE(0x0733, 0x0430)}, */ |
@@ -696,7 +696,7 @@ static __devinitdata struct usb_device_id device_table[] = { | |||
696 | MODULE_DEVICE_TABLE(usb, device_table); | 696 | MODULE_DEVICE_TABLE(usb, device_table); |
697 | 697 | ||
698 | /* -- device connect -- */ | 698 | /* -- device connect -- */ |
699 | static int sd_probe(struct usb_interface *intf, | 699 | static int __devinit sd_probe(struct usb_interface *intf, |
700 | const struct usb_device_id *id) | 700 | const struct usb_device_id *id) |
701 | { | 701 | { |
702 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), | 702 | return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd), |