diff options
| author | Tom Rini <[email protected]> | 2024-05-22 08:55:35 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-05-22 08:55:35 -0600 |
| commit | 377e91c162ab09ec20f96f966f380cb55c590edd (patch) | |
| tree | bbbda225be105805c857f65c9e57c67aa20dc669 /drivers | |
| parent | 7d24c3e06fa9a3b53cea593d4579886ef0eb4fe8 (diff) | |
| parent | cb73fe9eeae0d71a74eef811b0ba34aaf5513dbe (diff) | |
Merge patch series "Clean-up patch set for MbedTLS integration"
Raymond Mao <[email protected]> says:
This patch set is picked from the previously posted serie:
"[RFC] Integrate MbedTLS v3.6 LTS with U-Boot"
They are not directly related to MbedTLS integration, but the
prerequisite for a few clean-up, refactoring and minor fixes.
For V2, the linker script patch is dropped and added one patch
to move the snprintf to stdio.h
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/cpu/mpc83xx_cpu.c | 2 | ||||
| -rw-r--r-- | drivers/crypto/hash/hash_sw.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/cpu/mpc83xx_cpu.c b/drivers/cpu/mpc83xx_cpu.c index 9a7b5fd7c42..127d3c3af08 100644 --- a/drivers/cpu/mpc83xx_cpu.c +++ b/drivers/cpu/mpc83xx_cpu.c @@ -9,7 +9,7 @@ #include <cpu.h> #include <dm.h> #include <log.h> -#include <vsprintf.h> +#include <stdio.h> #include <linux/bitops.h> #include "mpc83xx_cpu.h" diff --git a/drivers/crypto/hash/hash_sw.c b/drivers/crypto/hash/hash_sw.c index ffd4ab149ff..4590e225481 100644 --- a/drivers/crypto/hash/hash_sw.c +++ b/drivers/crypto/hash/hash_sw.c @@ -50,17 +50,17 @@ static void hash_finish_crc32(void *ctx, void *obuf) /* MD5 */ static void hash_init_md5(void *ctx) { - MD5Init((struct MD5Context *)ctx); + MD5Init((MD5Context *)ctx); } static void hash_update_md5(void *ctx, const void *ibuf, uint32_t ilen) { - MD5Update((struct MD5Context *)ctx, ibuf, ilen); + MD5Update((MD5Context *)ctx, ibuf, ilen); } static void hash_finish_md5(void *ctx, void *obuf) { - MD5Final(obuf, (struct MD5Context *)ctx); + MD5Final(obuf, (MD5Context *)ctx); } /* SHA1 */ @@ -158,7 +158,7 @@ static struct sw_hash_impl sw_hash_impl[HASH_ALGO_NUM] = { .init = hash_init_md5, .update = hash_update_md5, .finish = hash_finish_md5, - .ctx_alloc_sz = sizeof(struct MD5Context), + .ctx_alloc_sz = sizeof(MD5Context), }, [HASH_ALGO_SHA1] = { |
