projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27bfeb5
)
i2c: robotfuzz-osif: Constify osif_table
author
Axel Lin
<axel.lin@ingics.com>
Thu, 2 Jun 2016 05:28:48 +0000
(13:28 +0800)
committer
Wolfram Sang
<wsa@the-dreams.de>
Mon, 13 Jun 2016 20:32:09 +0000
(22:32 +0200)
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>
drivers/i2c/busses/i2c-robotfuzz-osif.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-robotfuzz-osif.c
b/drivers/i2c/busses/i2c-robotfuzz-osif.c
index ced9c6a308d1258a4bf664067670c9dfa650a424..89d8b41b66680f8ab4326ded52168452675d54be 100644
(file)
--- 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) },
{ }
};