summaryrefslogtreecommitdiff
path: root/components/drivers/phy
diff options
context:
space:
mode:
authorguo <[email protected]>2021-09-28 10:36:54 +0800
committerGitHub <[email protected]>2021-09-28 10:36:54 +0800
commit55a302cd092758a44b589d65470a69d9e8ae4ced (patch)
treee60fc53994c426007e9eb4877e5bd123f124ef39 /components/drivers/phy
parent00727d6b6db92dc1cf98f028f26fd6168594b905 (diff)
parent00d42ef73cff61ecda7ff006b077a73e1a4ff669 (diff)
Merge branch 'master' into usbh_construct
Diffstat (limited to 'components/drivers/phy')
-rw-r--r--components/drivers/phy/phy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/drivers/phy/phy.c b/components/drivers/phy/phy.c
index 3ed4a1a265..87152a306e 100644
--- a/components/drivers/phy/phy.c
+++ b/components/drivers/phy/phy.c
@@ -1,6 +1,6 @@
/*
- * Copyright (c) 2006-2020, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -8,7 +8,7 @@
* Date Author Notes
* 2020-09-27 wangqiang first version
*/
-
+#include <stddef.h>
#include <rthw.h>
#include <rtthread.h>
#include <rtdevice.h>
@@ -34,9 +34,9 @@ static rt_size_t phy_device_write(rt_device_t dev, rt_off_t pos, const void *buf
#ifdef RT_USING_DEVICE_OPS
-const static struct rt_device_ops phy_ops =
+const static struct rt_device_ops phy_ops =
{
- RT_NULL,
+ RT_NULL,
RT_NULL,
RT_NULL,
phy_device_read,