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>
This commit is contained in:
parent
422eaac5d5
commit
37b372e5eb
6 changed files with 12 additions and 12 deletions
|
@ -1046,14 +1046,14 @@ static struct sd_desc sd_desc = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* -- module initialisation -- */
|
/* -- module initialisation -- */
|
||||||
static __devinitdata struct usb_device_id device_table[] = {
|
static const struct usb_device_id device_table[] __devinitconst = {
|
||||||
{USB_DEVICE(0x0572, 0x0041)},
|
{USB_DEVICE(0x0572, 0x0041)},
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(usb, device_table);
|
MODULE_DEVICE_TABLE(usb, device_table);
|
||||||
|
|
||||||
/* -- device connect -- */
|
/* -- device connect -- */
|
||||||
static int sd_probe(struct usb_interface *intf,
|
static int __devinit sd_probe(struct usb_interface *intf,
|
||||||
const struct usb_device_id *id)
|
const struct usb_device_id *id)
|
||||||
{
|
{
|
||||||
return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
|
return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
|
||||||
|
|
|
@ -864,7 +864,7 @@ static struct sd_desc sd_desc = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* -- module initialisation -- */
|
/* -- module initialisation -- */
|
||||||
static __devinitdata struct usb_device_id device_table[] = {
|
static const struct usb_device_id device_table[] __devinitconst = {
|
||||||
{USB_DEVICE(0x102c, 0x6151), .driver_info = SENSOR_PAS106},
|
{USB_DEVICE(0x102c, 0x6151), .driver_info = SENSOR_PAS106},
|
||||||
#if !defined CONFIG_USB_ET61X251 && !defined CONFIG_USB_ET61X251_MODULE
|
#if !defined CONFIG_USB_ET61X251 && !defined CONFIG_USB_ET61X251_MODULE
|
||||||
{USB_DEVICE(0x102c, 0x6251), .driver_info = SENSOR_TAS5130CXX},
|
{USB_DEVICE(0x102c, 0x6251), .driver_info = SENSOR_TAS5130CXX},
|
||||||
|
@ -875,7 +875,7 @@ static __devinitdata struct usb_device_id device_table[] = {
|
||||||
MODULE_DEVICE_TABLE(usb, device_table);
|
MODULE_DEVICE_TABLE(usb, device_table);
|
||||||
|
|
||||||
/* -- device connect -- */
|
/* -- device connect -- */
|
||||||
static int sd_probe(struct usb_interface *intf,
|
static int __devinit sd_probe(struct usb_interface *intf,
|
||||||
const struct usb_device_id *id)
|
const struct usb_device_id *id)
|
||||||
{
|
{
|
||||||
return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
|
return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
|
||||||
|
|
|
@ -1229,7 +1229,7 @@ static struct sd_desc sd_desc = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* -- module initialisation -- */
|
/* -- module initialisation -- */
|
||||||
static __devinitdata struct usb_device_id device_table[] = {
|
static const struct usb_device_id device_table[] __devinitconst = {
|
||||||
{USB_DEVICE(0x06f8, 0x3009)},
|
{USB_DEVICE(0x06f8, 0x3009)},
|
||||||
{USB_DEVICE(0x093a, 0x2620)},
|
{USB_DEVICE(0x093a, 0x2620)},
|
||||||
{USB_DEVICE(0x093a, 0x2621)},
|
{USB_DEVICE(0x093a, 0x2621)},
|
||||||
|
@ -1245,7 +1245,7 @@ static __devinitdata struct usb_device_id device_table[] = {
|
||||||
MODULE_DEVICE_TABLE(usb, device_table);
|
MODULE_DEVICE_TABLE(usb, device_table);
|
||||||
|
|
||||||
/* -- device connect -- */
|
/* -- device connect -- */
|
||||||
static int sd_probe(struct usb_interface *intf,
|
static int __devinit sd_probe(struct usb_interface *intf,
|
||||||
const struct usb_device_id *id)
|
const struct usb_device_id *id)
|
||||||
{
|
{
|
||||||
return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
|
return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
|
||||||
|
|
|
@ -863,7 +863,7 @@ static struct sd_desc sd_desc = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* -- module initialisation -- */
|
/* -- module initialisation -- */
|
||||||
static __devinitdata struct usb_device_id device_table[] = {
|
static const struct usb_device_id device_table[] __devinitconst = {
|
||||||
{USB_DEVICE(0x093a, 0x2600)},
|
{USB_DEVICE(0x093a, 0x2600)},
|
||||||
{USB_DEVICE(0x093a, 0x2601)},
|
{USB_DEVICE(0x093a, 0x2601)},
|
||||||
{USB_DEVICE(0x093a, 0x2603)},
|
{USB_DEVICE(0x093a, 0x2603)},
|
||||||
|
@ -875,7 +875,7 @@ static __devinitdata struct usb_device_id device_table[] = {
|
||||||
MODULE_DEVICE_TABLE(usb, device_table);
|
MODULE_DEVICE_TABLE(usb, device_table);
|
||||||
|
|
||||||
/* -- device connect -- */
|
/* -- device connect -- */
|
||||||
static int sd_probe(struct usb_interface *intf,
|
static int __devinit sd_probe(struct usb_interface *intf,
|
||||||
const struct usb_device_id *id)
|
const struct usb_device_id *id)
|
||||||
{
|
{
|
||||||
return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
|
return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
|
||||||
|
|
|
@ -1226,7 +1226,7 @@ static const struct sd_desc sd_desc = {
|
||||||
.driver_info = (SENSOR_ ## sensor << 8) | BRIDGE_ ## bridge
|
.driver_info = (SENSOR_ ## sensor << 8) | BRIDGE_ ## bridge
|
||||||
|
|
||||||
|
|
||||||
static __devinitdata struct usb_device_id device_table[] = {
|
static const struct usb_device_id device_table[] __devinitconst = {
|
||||||
{USB_DEVICE(0x0c45, 0x6001), SB(TAS5110, 102)}, /* TAS5110C1B */
|
{USB_DEVICE(0x0c45, 0x6001), SB(TAS5110, 102)}, /* TAS5110C1B */
|
||||||
{USB_DEVICE(0x0c45, 0x6005), SB(TAS5110, 101)}, /* TAS5110C1B */
|
{USB_DEVICE(0x0c45, 0x6005), SB(TAS5110, 101)}, /* TAS5110C1B */
|
||||||
#if !defined CONFIG_USB_SN9C102 && !defined CONFIG_USB_SN9C102_MODULE
|
#if !defined CONFIG_USB_SN9C102 && !defined CONFIG_USB_SN9C102_MODULE
|
||||||
|
@ -1257,7 +1257,7 @@ static __devinitdata struct usb_device_id device_table[] = {
|
||||||
MODULE_DEVICE_TABLE(usb, device_table);
|
MODULE_DEVICE_TABLE(usb, device_table);
|
||||||
|
|
||||||
/* -- device connect -- */
|
/* -- device connect -- */
|
||||||
static int sd_probe(struct usb_interface *intf,
|
static int __devinit sd_probe(struct usb_interface *intf,
|
||||||
const struct usb_device_id *id)
|
const struct usb_device_id *id)
|
||||||
{
|
{
|
||||||
return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
|
return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
|
||||||
|
|
|
@ -685,7 +685,7 @@ static struct sd_desc sd_desc = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* -- module initialisation -- */
|
/* -- module initialisation -- */
|
||||||
static __devinitdata struct usb_device_id device_table[] = {
|
static const struct usb_device_id device_table[] __devinitconst = {
|
||||||
{USB_DEVICE(0x06e1, 0xa190)},
|
{USB_DEVICE(0x06e1, 0xa190)},
|
||||||
/*fixme: may be IntelPCCameraPro BRIDGE_SPCA505
|
/*fixme: may be IntelPCCameraPro BRIDGE_SPCA505
|
||||||
{USB_DEVICE(0x0733, 0x0430)}, */
|
{USB_DEVICE(0x0733, 0x0430)}, */
|
||||||
|
@ -696,7 +696,7 @@ static __devinitdata struct usb_device_id device_table[] = {
|
||||||
MODULE_DEVICE_TABLE(usb, device_table);
|
MODULE_DEVICE_TABLE(usb, device_table);
|
||||||
|
|
||||||
/* -- device connect -- */
|
/* -- device connect -- */
|
||||||
static int sd_probe(struct usb_interface *intf,
|
static int __devinit sd_probe(struct usb_interface *intf,
|
||||||
const struct usb_device_id *id)
|
const struct usb_device_id *id)
|
||||||
{
|
{
|
||||||
return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
|
return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
|
||||||
|
|
Loading…
Reference in a new issue