Re: [PATCH] watchdog: pcwd_usb: constify usb_device_id

2017-08-14 Thread Guenter Roeck
On Sat, Aug 12, 2017 at 02:09:45PM +0530, Arvind Yadav wrote: > usb_device_id are not supposed to change at runtime. All functions > working with usb_device_id provided by work with > const usb_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav

Re: [PATCH] watchdog: pcwd_usb: constify usb_device_id

2017-08-14 Thread Guenter Roeck
On Sat, Aug 12, 2017 at 02:09:45PM +0530, Arvind Yadav wrote: > usb_device_id are not supposed to change at runtime. All functions > working with usb_device_id provided by work with > const usb_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Reviewed-by:

[PATCH] watchdog: pcwd_usb: constify usb_device_id

2017-08-12 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/watchdog/pcwd_usb.c | 2 +- 1 file changed, 1

[PATCH] watchdog: pcwd_usb: constify usb_device_id

2017-08-12 Thread Arvind Yadav
usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/watchdog/pcwd_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)