summaryrefslogtreecommitdiff
path: root/components/drivers/fdt/src
diff options
context:
space:
mode:
author7YZ7 <[email protected]>2023-04-18 10:26:23 +0800
committerGitHub <[email protected]>2023-04-17 22:26:23 -0400
commit501b22aabede2d4e179bfc47f3b75522e5933da4 (patch)
tree2a4c160aabc412aaded6b83ec22238bf37cab30c /components/drivers/fdt/src
parent3f44132ade0d45e7851f46d6bb1241d10eccfff5 (diff)
[HUST CSE] Fix many abnormal symbols in annotations and format code
Diffstat (limited to 'components/drivers/fdt/src')
-rw-r--r--components/drivers/fdt/src/dtb_base.c10
-rw-r--r--components/drivers/fdt/src/dtb_get.c2
-rw-r--r--components/drivers/fdt/src/dtb_head.c4
-rw-r--r--components/drivers/fdt/src/dtb_load.c2
-rw-r--r--components/drivers/fdt/src/dtb_set.c2
5 files changed, 10 insertions, 10 deletions
diff --git a/components/drivers/fdt/src/dtb_base.c b/components/drivers/fdt/src/dtb_base.c
index 6b1c580d12..58afd61a82 100644
--- a/components/drivers/fdt/src/dtb_base.c
+++ b/components/drivers/fdt/src/dtb_base.c
@@ -213,16 +213,16 @@ int dtb_node_get_addr_and_size_by_index(const struct dtb_node *node, int index,
int onesize, na, ns;
na = dtb_node_n_addr_cells(node);
- ns = dtb_node_n_size_cells(node);
+ ns = dtb_node_n_size_cells(node);
prop = dtb_node_get_dtb_node_property_value(node, "reg", &psize);
- if (prop == NULL)
+ if (prop == NULL)
{
- return -1;
+ return -1;
}
- psize /= 4;
- onesize = na + ns;
+ psize /= 4;
+ onesize = na + ns;
if (psize >= (index + 1) * onesize)
{
diff --git a/components/drivers/fdt/src/dtb_get.c b/components/drivers/fdt/src/dtb_get.c
index 4922b98d6c..3f5be73469 100644
--- a/components/drivers/fdt/src/dtb_get.c
+++ b/components/drivers/fdt/src/dtb_get.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*/
diff --git a/components/drivers/fdt/src/dtb_head.c b/components/drivers/fdt/src/dtb_head.c
index 7fe661943d..6142673393 100644
--- a/components/drivers/fdt/src/dtb_head.c
+++ b/components/drivers/fdt/src/dtb_head.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -38,4 +38,4 @@ int device_tree_setup(void *mem_addr)
}
return -1;
-} \ No newline at end of file
+}
diff --git a/components/drivers/fdt/src/dtb_load.c b/components/drivers/fdt/src/dtb_load.c
index ba47c383e9..e3b7f34e8b 100644
--- a/components/drivers/fdt/src/dtb_load.c
+++ b/components/drivers/fdt/src/dtb_load.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*/
diff --git a/components/drivers/fdt/src/dtb_set.c b/components/drivers/fdt/src/dtb_set.c
index 28fe2b5fde..f0e11b6b4f 100644
--- a/components/drivers/fdt/src/dtb_set.c
+++ b/components/drivers/fdt/src/dtb_set.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2022, RT-Thread Development Team
+ * Copyright (c) 2006-2023, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*/