summaryrefslogtreecommitdiff
path: root/components/vbus
diff options
context:
space:
mode:
Diffstat (limited to 'components/vbus')
-rw-r--r--components/vbus/prio_queue.c2
-rw-r--r--components/vbus/prio_queue.h2
-rw-r--r--components/vbus/share_hdr/vbus_api.h2
-rw-r--r--components/vbus/vbus.c12
-rw-r--r--components/vbus/vbus.h12
-rw-r--r--components/vbus/vbus_chnx.c2
-rw-r--r--components/vbus/watermark_queue.c2
-rw-r--r--components/vbus/watermark_queue.h2
8 files changed, 18 insertions, 18 deletions
diff --git a/components/vbus/prio_queue.c b/components/vbus/prio_queue.c
index bca3cdcd9a..f7f5bb05ac 100644
--- a/components/vbus/prio_queue.c
+++ b/components/vbus/prio_queue.c
@@ -1,6 +1,6 @@
/*
* COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd
- *
+ *
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
diff --git a/components/vbus/prio_queue.h b/components/vbus/prio_queue.h
index 7358ffdb23..3e214212f7 100644
--- a/components/vbus/prio_queue.h
+++ b/components/vbus/prio_queue.h
@@ -1,6 +1,6 @@
/*
* COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd
- *
+ *
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
diff --git a/components/vbus/share_hdr/vbus_api.h b/components/vbus/share_hdr/vbus_api.h
index db6cb7b72c..a643822a9c 100644
--- a/components/vbus/share_hdr/vbus_api.h
+++ b/components/vbus/share_hdr/vbus_api.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/vbus/vbus.c b/components/vbus/vbus.c
index 8add15d9db..e24a0eed0e 100644
--- a/components/vbus/vbus.c
+++ b/components/vbus/vbus.c
@@ -1,6 +1,6 @@
/*
* COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd
- *
+ *
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
@@ -899,8 +899,8 @@ int rt_vbus_request_chn(struct rt_vbus_request *req,
int timeout)
{
int i, chnr, err;
- size_t plen = rt_strlen(req->name) + 2;
- unsigned char *pbuf;
+ size_t plen = rt_strlen(req->name) + 2;
+ unsigned char *pbuf;
rt_ubase_t lvl;
lvl = rt_hw_interrupt_disable();
@@ -930,8 +930,8 @@ int rt_vbus_request_chn(struct rt_vbus_request *req,
goto _waitforcmp;
}
- pbuf = rt_malloc(plen);
- if (!pbuf)
+ pbuf = rt_malloc(plen);
+ if (!pbuf)
{
rt_hw_interrupt_enable(lvl);
return -RT_ENOMEM;
@@ -944,7 +944,7 @@ int rt_vbus_request_chn(struct rt_vbus_request *req,
rt_memcpy(pbuf+1, req->name, plen-1);
vbus_verbose("%s --> remote\n", dump_cmd_pkt(pbuf, plen));
- err = _chn0_post(pbuf, plen, RT_WAITING_FOREVER);
+ err = _chn0_post(pbuf, plen, RT_WAITING_FOREVER);
rt_free(pbuf);
_waitforcmp:
diff --git a/components/vbus/vbus.h b/components/vbus/vbus.h
index ea271d8e79..9434daf9ed 100644
--- a/components/vbus/vbus.h
+++ b/components/vbus/vbus.h
@@ -1,6 +1,6 @@
/*
* COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd
- *
+ *
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
@@ -51,14 +51,14 @@ struct rt_vbus_data {
};
struct rt_vbus_wm_cfg {
- unsigned int low, high;
+ unsigned int low, high;
};
struct rt_vbus_request {
- unsigned char prio;
- const char *name;
- int is_server;
- struct rt_vbus_wm_cfg recv_wm, post_wm;
+ unsigned char prio;
+ const char *name;
+ int is_server;
+ struct rt_vbus_wm_cfg recv_wm, post_wm;
};
/** Request a channel.
diff --git a/components/vbus/vbus_chnx.c b/components/vbus/vbus_chnx.c
index d064d6f1f2..8529989f63 100644
--- a/components/vbus/vbus_chnx.c
+++ b/components/vbus/vbus_chnx.c
@@ -1,6 +1,6 @@
/*
* COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd
- *
+ *
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
diff --git a/components/vbus/watermark_queue.c b/components/vbus/watermark_queue.c
index e56790d286..7a39b11359 100644
--- a/components/vbus/watermark_queue.c
+++ b/components/vbus/watermark_queue.c
@@ -1,6 +1,6 @@
/*
* COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd
- *
+ *
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
diff --git a/components/vbus/watermark_queue.h b/components/vbus/watermark_queue.h
index 0ecc52d8ff..50bbc69577 100644
--- a/components/vbus/watermark_queue.h
+++ b/components/vbus/watermark_queue.h
@@ -1,6 +1,6 @@
/*
* COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd
- *
+ *
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs: