From patchwork Wed Apr 8 14:32:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 237417 List-Id: U-Boot discussion From: sjg at chromium.org (Simon Glass) Date: Wed, 8 Apr 2020 08:32:54 -0600 Subject: [PATCH v5 0/6] A few little patches Message-ID: <20200408143300.52636-1-sjg@chromium.org> This series collects together a few patches I have been carrying for a while. The first two pathces are split out of the acpi series since they don't really relate to ACPI. Changes in v5: - Drop change to FAT - Add new tests for copying an empty string - Use size_t instead of int, require caller to use SIZE_MAX - Update the algorithm to avoid dealing with -1 Changes in v4: - Add a new patch with some string tests - Add a new patch to convert a string to upper case Simon Glass (6): test: Add the beginnings of some string tests lib: Add a function to convert a string to upper case usb: Update struct usb_device to indicate speed enum uuid: Use const char * where possible pci: Add a macro to convert BDF from linux to U-Boot dm: mmc: Update mmc_get_mmc_dev() to use const * drivers/mmc/mmc-uclass.c | 2 +- include/mmc.h | 2 +- include/pci.h | 3 + include/test/suites.h | 1 + include/usb.h | 2 +- include/uuid.h | 8 ++- include/vsprintf.h | 12 ++++ lib/strto.c | 8 +++ lib/uuid.c | 6 +- test/Makefile | 1 + test/cmd_ut.c | 5 ++ test/str_ut.c | 115 +++++++++++++++++++++++++++++++++++++++ 12 files changed, 157 insertions(+), 8 deletions(-) create mode 100644 test/str_ut.c