Netdev List
 help / color / mirror / Atom feed
* [PATCH 04/35] net: irda: irda-usb: constify usb_device_id
@ 2017-08-08 15:56 Arvind Yadav
  2017-08-08 15:56 ` [PATCH 05/35] net: irda: kingsun: " Arvind Yadav
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Arvind Yadav @ 2017-08-08 15:56 UTC (permalink / raw)
  To: kvalo, samuel; +Cc: linux-kernel, netdev

usb_device_id are not supposed to change at runtime. All functions
working with usb_device_id provided by <linux/usb.h> work with
const usb_device_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 drivers/net/irda/irda-usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/irda/irda-usb.c b/drivers/net/irda/irda-usb.c
index 6f3c805..723e49b 100644
--- a/drivers/net/irda/irda-usb.c
+++ b/drivers/net/irda/irda-usb.c
@@ -72,7 +72,7 @@
 static int qos_mtt_bits = 0;
 
 /* These are the currently known IrDA USB dongles. Add new dongles here */
-static struct usb_device_id dongles[] = {
+static const struct usb_device_id dongles[] = {
 	/* ACTiSYS Corp.,  ACT-IR2000U FIR-USB Adapter */
 	{ USB_DEVICE(0x9c4, 0x011), .driver_info = IUC_SPEED_BUG | IUC_NO_WINDOW },
 	/* Look like ACTiSYS, Report : IBM Corp., IBM UltraPort IrDA */
-- 
2.7.4

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

end of thread, other threads:[~2017-08-08 15:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-08 15:56 [PATCH 04/35] net: irda: irda-usb: constify usb_device_id Arvind Yadav
2017-08-08 15:56 ` [PATCH 05/35] net: irda: kingsun: " Arvind Yadav
2017-08-08 15:56 ` [PATCH 06/35] net: irda: ks959: " Arvind Yadav
2017-08-08 15:56 ` [PATCH 07/35] net: irda: ksdazzle: " Arvind Yadav
2017-08-08 15:56 ` [PATCH 08/35] net: irda: mcs7780: " Arvind Yadav
2017-08-08 15:56 ` [PATCH 09/35] net: irda: stir4200: " Arvind Yadav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox