From 0e90ebde1998fb785d448930ccb14e0a072f08fe Mon Sep 17 00:00:00 2001 From: Mathias Brossard Date: Sat, 26 Nov 2022 21:35:33 -0600 Subject: [PATCH] RAM savings: make some variables constants --- source/target/target_family.c | 2 +- source/usb/usb_lib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/target/target_family.c b/source/target/target_family.c index b1066b590d..86b33d84bb 100644 --- a/source/target/target_family.c +++ b/source/target/target_family.c @@ -72,7 +72,7 @@ __WEAK const target_family_descriptor_t g_maxim_max3266x_family = {0}; //! descriptors has a weak reference defined above, the entry in this list for a family whose //! descriptor is not included in the link will resolve to NULL and init_family() can skip it. __WEAK -const target_family_descriptor_t *g_families[] = { +const target_family_descriptor_t * const g_families[] = { &g_hw_reset_family, &g_sw_vectreset_family, &g_sw_sysresetreq_family, diff --git a/source/usb/usb_lib.c b/source/usb/usb_lib.c index fef24c5248..3ca8048fb6 100644 --- a/source/usb/usb_lib.c +++ b/source/usb/usb_lib.c @@ -2455,7 +2455,7 @@ const struct { } __WEAK \ -struct { +const struct { WEBUSB_URL_DEF(WEBUSB_LANDING_URL); WEBUSB_URL_DEF(WEBUSB_ORIGIN_URL); } USBD_WebUSBURLDescriptor