aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <[email protected]>2016-06-02 05:28:48 +0000
committerWolfram Sang <[email protected]>2016-06-13 20:32:09 +0000
commit33c77abcf4aa5e9679f702a2f979d44a470f6e6e (patch)
tree40a572abdd67318dfa420f77cdd444365e8d96a0
parenti2c: jz4780: drop superfluous init (diff)
downloadkernel-33c77abcf4aa5e9679f702a2f979d44a470f6e6e.tar.gz
kernel-33c77abcf4aa5e9679f702a2f979d44a470f6e6e.zip
i2c: robotfuzz-osif: Constify osif_table
osif_table is never modified, so declare it as const. Signed-off-by: Axel Lin <[email protected]> Acked-by: Andrew Lunn <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
-rw-r--r--drivers/i2c/busses/i2c-robotfuzz-osif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-robotfuzz-osif.c b/drivers/i2c/busses/i2c-robotfuzz-osif.c
index ced9c6a308d1..89d8b41b6668 100644
--- a/drivers/i2c/busses/i2c-robotfuzz-osif.c
+++ b/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) },
{ }
};