i2c: robotfuzz-osif: Constify osif_table
PATCH 1/1 i2c: robotfuzz-osif: Constify osif_table
osif_table is never modified, so declare it as const.
Signed-off-by Axel Lin <[email protected]>
--- drivers/i2c/busses/i2c-robotfuzz-osif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-robotfuzz-osif.c +1 -1
@@ -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 ) }, { } };
Signature · 1 line
2.5.0
Quoted 3 lines · Axel Lin
osif_tableis never modified, so declare it as const.Signed-off-by Axel Lin <[email protected]>
Acked-by Andrew Lunn <[email protected]>
Thanks
Andrew
Quoted 20 lines
--- drivers/i2c/busses/i2c-robotfuzz-osif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/i2c/busses/i2c-robotfuzz-osif.c +1
-1@@ -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 ) }, { } };Signature · 1 line
2.5.0
Wolfram Sang
AppliedQuoted 3 lines · Axel Lin
osif_tableis never modified, so declare it as const.Signed-off-by Axel Lin <[email protected]>
Applied to for-next, thanks!