Browse Source

i2c: robotfuzz-osif: Constify osif_table

osif_table is never modified, so declare it as const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Axel Lin 9 years ago
parent
commit
33c77abcf4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/i2c/busses/i2c-robotfuzz-osif.c

+ 1 - 1
drivers/i2c/busses/i2c-robotfuzz-osif.c

@@ -125,7 +125,7 @@ static struct i2c_algorithm osif_algorithm = {
 #define USB_OSIF_VENDOR_ID	0x1964
 #define USB_OSIF_PRODUCT_ID	0x0001
 
-static struct usb_device_id osif_table[] = {
+static const struct usb_device_id osif_table[] = {
 	{ USB_DEVICE(USB_OSIF_VENDOR_ID, USB_OSIF_PRODUCT_ID) },
 	{ }
 };