aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini2023-11-25 12:34:23 -0500
committerTom Rini2023-11-25 12:34:23 -0500
commit129d6a0d87b7f19b85dc0a007f7050ce973fd019 (patch)
treedce8a44891dd5789bf620245a768469d53e689ef /include
parent1682d97db9aa5bbfc8c5b9f26bd1454e6a9a0ccb (diff)
parent8a0d07807abb5370fe879321c7f1d22fdda3255f (diff)
Merge tag 'u-boot-dfu-next-20231124' of https://source.denx.de/u-boot/custodians/u-boot-dfu into next
u-boot-dfu-next-20231124 - Make dfu entity name size configurable in KConfig - Implement start-stop for UMS (graceful shutdown via eject) - Improve help messages for cmd/bind - Improve help message for udc bind failures
Diffstat (limited to 'include')
-rw-r--r--include/dfu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h
index 68b5ca46ce5..2f42781888a 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -98,7 +98,12 @@ struct virt_internal_data {
int dev_num;
};
+
+#if defined(CONFIG_DFU_NAME_MAX_SIZE)
+#define DFU_NAME_SIZE CONFIG_DFU_NAME_MAX_SIZE
+#else
#define DFU_NAME_SIZE 32
+#endif
#ifndef DFU_DEFAULT_POLL_TIMEOUT
#define DFU_DEFAULT_POLL_TIMEOUT 0
#endif