All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: robotfuzz-osif: Constify osif_table
@ 2016-06-02  5:28 Axel Lin
  2016-06-02 11:59 ` Andrew Lunn
  2016-06-09 20:44 ` Wolfram Sang
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2016-06-02  5:28 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: Andrew Lunn, linux-i2c

osif_table is never modified, so declare it as const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/i2c/busses/i2c-robotfuzz-osif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-robotfuzz-osif.c b/drivers/i2c/busses/i2c-robotfuzz-osif.c
index ced9c6a..89d8b41 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) },
 	{ }
 };
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] i2c: robotfuzz-osif: Constify osif_table
  2016-06-02  5:28 [PATCH] i2c: robotfuzz-osif: Constify osif_table Axel Lin
@ 2016-06-02 11:59 ` Andrew Lunn
  2016-06-09 20:44 ` Wolfram Sang
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2016-06-02 11:59 UTC (permalink / raw)
  To: Axel Lin; +Cc: Wolfram Sang, linux-i2c

On Thu, Jun 02, 2016 at 01:28:48PM +0800, Axel Lin wrote:
> 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>

Thanks
	Andrew

> ---
>  drivers/i2c/busses/i2c-robotfuzz-osif.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/i2c/busses/i2c-robotfuzz-osif.c b/drivers/i2c/busses/i2c-robotfuzz-osif.c
> index ced9c6a..89d8b41 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) },
>  	{ }
>  };
> -- 
> 2.5.0
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] i2c: robotfuzz-osif: Constify osif_table
  2016-06-02  5:28 [PATCH] i2c: robotfuzz-osif: Constify osif_table Axel Lin
  2016-06-02 11:59 ` Andrew Lunn
@ 2016-06-09 20:44 ` Wolfram Sang
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfram Sang @ 2016-06-09 20:44 UTC (permalink / raw)
  To: Axel Lin; +Cc: Andrew Lunn, linux-i2c

[-- Attachment #1: Type: text/plain, Size: 203 bytes --]

On Thu, Jun 02, 2016 at 01:28:48PM +0800, Axel Lin wrote:
> osif_table is never modified, so declare it as const.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Applied to for-next, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-09 20:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-02  5:28 [PATCH] i2c: robotfuzz-osif: Constify osif_table Axel Lin
2016-06-02 11:59 ` Andrew Lunn
2016-06-09 20:44 ` Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.