4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-19 05:51:24 +08:00

[components][drivers][hwcrypto] 更正一处命名错误

This commit is contained in:
tangyuxin 2019-07-15 13:45:32 +08:00
parent 81cbc777ef
commit 1f2e8e1f3f
4 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ rt_inline rt_err_t hwcrypto_bignum_dev_is_init(void)
{ {
return RT_EOK; return RT_EOK;
} }
dev = rt_hwcrypto_dev_dufault(); dev = rt_hwcrypto_dev_default();
if (dev == RT_NULL) if (dev == RT_NULL)
{ {
return -RT_ERROR; return -RT_ERROR;

View File

@ -103,8 +103,8 @@ rt_uint32_t rt_hwcrypto_rng_update(void)
/* Default device does not exist ? */ /* Default device does not exist ? */
if (ctx_default == RT_NULL) if (ctx_default == RT_NULL)
{ {
/* try create Context from dufault device */ /* try create Context from default device */
rt_hwcrypto_rng_default(rt_hwcrypto_dev_dufault()); rt_hwcrypto_rng_default(rt_hwcrypto_dev_default());
} }
return rt_hwcrypto_rng_update_ctx(ctx_default); return rt_hwcrypto_rng_update_ctx(ctx_default);
} }

View File

@ -171,7 +171,7 @@ rt_err_t rt_hwcrypto_ctx_cpy(struct rt_hwcrypto_ctx *des, const struct rt_hwcryp
* @return Hardware crypto device * @return Hardware crypto device
* *
*/ */
struct rt_hwcrypto_device *rt_hwcrypto_dev_dufault(void) struct rt_hwcrypto_device *rt_hwcrypto_dev_default(void)
{ {
static struct rt_hwcrypto_device *hwcrypto_dev; static struct rt_hwcrypto_device *hwcrypto_dev;

View File

@ -175,7 +175,7 @@ rt_err_t rt_hwcrypto_register(struct rt_hwcrypto_device *device, const char *nam
* @return Hardware crypto device * @return Hardware crypto device
* *
*/ */
struct rt_hwcrypto_device *rt_hwcrypto_dev_dufault(void); struct rt_hwcrypto_device *rt_hwcrypto_dev_default(void);
/** /**
* @brief Get the unique ID of the device * @brief Get the unique ID of the device