Skip to content

Commit d1bb5aa

Browse files
ArvindYadavCsdavem330
authored andcommitted
net: irda: stir4200: constify usb_device_id
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4730279 commit d1bb5aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/irda/stir4200.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ struct stir_cb {
183183

184184

185185
/* These are the currently known USB ids */
186-
static struct usb_device_id dongles[] = {
186+
static const struct usb_device_id dongles[] = {
187187
/* SigmaTel, Inc, STIr4200 IrDA/USB Bridge */
188188
{ USB_DEVICE(0x066f, 0x4200) },
189189
{ }

0 commit comments

Comments
 (0)