summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authortangyuxin <[email protected]>2019-07-15 13:45:32 +0800
committertangyuxin <[email protected]>2019-07-15 13:48:14 +0800
commit1f2e8e1f3fdbfe6a52eb73f516be09612bd1fc72 (patch)
tree8e103c7156423b2a9592eaa4ecf50e31e4b57a94 /components/drivers
parent81cbc777ef3642f732a22ab226a7a57f475ba03e (diff)
[components][drivers][hwcrypto] 更正一处命名错误
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/hwcrypto/hw_bignum.c2
-rw-r--r--components/drivers/hwcrypto/hw_rng.c4
-rw-r--r--components/drivers/hwcrypto/hwcrypto.c2
-rw-r--r--components/drivers/hwcrypto/hwcrypto.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/components/drivers/hwcrypto/hw_bignum.c b/components/drivers/hwcrypto/hw_bignum.c
index cfc57f8273..88813566b1 100644
--- a/components/drivers/hwcrypto/hw_bignum.c
+++ b/components/drivers/hwcrypto/hw_bignum.c
@@ -22,7 +22,7 @@ rt_inline rt_err_t hwcrypto_bignum_dev_is_init(void)
{
return RT_EOK;
}
- dev = rt_hwcrypto_dev_dufault();
+ dev = rt_hwcrypto_dev_default();
if (dev == RT_NULL)
{
return -RT_ERROR;
diff --git a/components/drivers/hwcrypto/hw_rng.c b/components/drivers/hwcrypto/hw_rng.c
index f64bdf8831..13a17cc6be 100644
--- a/components/drivers/hwcrypto/hw_rng.c
+++ b/components/drivers/hwcrypto/hw_rng.c
@@ -103,8 +103,8 @@ rt_uint32_t rt_hwcrypto_rng_update(void)
/* Default device does not exist ? */
if (ctx_default == RT_NULL)
{
- /* try create Context from dufault device */
- rt_hwcrypto_rng_default(rt_hwcrypto_dev_dufault());
+ /* try create Context from default device */
+ rt_hwcrypto_rng_default(rt_hwcrypto_dev_default());
}
return rt_hwcrypto_rng_update_ctx(ctx_default);
}
diff --git a/components/drivers/hwcrypto/hwcrypto.c b/components/drivers/hwcrypto/hwcrypto.c
index 3dc5649cd6..bbe1ff63fb 100644
--- a/components/drivers/hwcrypto/hwcrypto.c
+++ b/components/drivers/hwcrypto/hwcrypto.c
@@ -171,7 +171,7 @@ rt_err_t rt_hwcrypto_ctx_cpy(struct rt_hwcrypto_ctx *des, const struct rt_hwcryp
* @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;
diff --git a/components/drivers/hwcrypto/hwcrypto.h b/components/drivers/hwcrypto/hwcrypto.h
index 944fb03c14..a428f4437d 100644
--- a/components/drivers/hwcrypto/hwcrypto.h
+++ b/components/drivers/hwcrypto/hwcrypto.h
@@ -175,7 +175,7 @@ rt_err_t rt_hwcrypto_register(struct rt_hwcrypto_device *device, const char *nam
* @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