diff options
| author | maxv <maxv@NetBSD.org> | 2018-06-03 10:59:35 +0000 |
|---|---|---|
| committer | maxv <maxv@NetBSD.org> | 2018-06-03 10:59:35 +0000 |
| commit | 0a68d2170b052e90dee1cad467e24976e27264d7 (patch) | |
| tree | 7c06b5564fcdb14c2fb5347bba1106b3772a075b /sys/dev | |
| parent | 2a429335f99f6b48a747f585af968675597ed34e (diff) | |
Constify atu_devs[] so that it lands in .rodata (600 bytes).
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/if_atu.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/usb/if_atu.c b/sys/dev/usb/if_atu.c index 0b11b7d348d..afbf94ba60f 100644 --- a/sys/dev/usb/if_atu.c +++ b/sys/dev/usb/if_atu.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_atu.c,v 1.57 2018/05/01 16:18:13 maya Exp $ */ +/* $NetBSD: if_atu.c,v 1.58 2018/06/03 10:59:35 maxv Exp $ */ /* $OpenBSD: if_atu.c,v 1.48 2004/12/30 01:53:21 dlg Exp $ */ /* * Copyright (c) 2003, 2004 @@ -48,7 +48,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.57 2018/05/01 16:18:13 maya Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.58 2018/06/03 10:59:35 maxv Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -108,7 +108,7 @@ int atudebug = 1; /* * Various supported device vendors/products/radio type. */ -struct atu_type atu_devs[] = { +static const struct atu_type atu_devs[] = { { USB_VENDOR_3COM, USB_PRODUCT_3COM_3CRSHEW696, RadioRFMD, ATU_NO_QUIRK }, { USB_VENDOR_ABOCOM, USB_PRODUCT_ABOCOM_BWU613, @@ -1101,7 +1101,7 @@ atu_match(device_t parent, cfdata_t match, void *aux) int i; for (i = 0; i < __arraycount(atu_devs); i++) { - struct atu_type *t = &atu_devs[i]; + const struct atu_type *t = &atu_devs[i]; if (uaa->uaa_vendor == t->atu_vid && uaa->uaa_product == t->atu_pid) { @@ -1280,7 +1280,7 @@ atu_attach(device_t parent, device_t self, void *aux) * basically does the same as atu_match */ for (i = 0; i < __arraycount(atu_devs); i++) { - struct atu_type *t = &atu_devs[i]; + const struct atu_type *t = &atu_devs[i]; if (uaa->uaa_vendor == t->atu_vid && uaa->uaa_product == t->atu_pid) { |
