From: Axel Lin Date: Thu, 2 Jun 2016 05:28:48 +0000 (+0800) Subject: i2c: robotfuzz-osif: Constify osif_table X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=33c77abcf4aa5e9679f702a2f979d44a470f6e6e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git i2c: robotfuzz-osif: Constify osif_table osif_table is never modified, so declare it as const. Signed-off-by: Axel Lin Acked-by: Andrew Lunn Signed-off-by: Wolfram Sang --- 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) }, { } };