Skip to content

Commit

Permalink
app: fix comment style and trailing whitespace
Browse files Browse the repository at this point in the history
Fix some checkpatch complains

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
  • Loading branch information
arnopo committed May 31, 2022
1 parent 923e060 commit ef7a9d0
Show file tree
Hide file tree
Showing 18 changed files with 78 additions and 44 deletions.
8 changes: 5 additions & 3 deletions apps/examples/echo/rpmsg-echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This is a sample demonstration application that showcases usage of rpmsg
This application is meant to run on the remote CPU running baremetal code.
This application echoes back data that was sent to it by the master core. */
/*
* This is a sample demonstration application that showcases usage of rpmsg
* This application is meant to run on the remote CPU running baremetal code.
* This application echoes back data that was sent to it by the master core.
*/

#include <stdio.h>
#include <openamp/open_amp.h>
Expand Down
8 changes: 5 additions & 3 deletions apps/examples/echo/rpmsg-ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This is a sample demonstration application that showcases usage of rpmsg
This application is meant to run on the remote CPU running baremetal code.
This application echoes back data that was sent to it by the master core. */
/*
* This is a sample demonstration application that showcases usage of rpmsg
* This application is meant to run on the remote CPU running baremetal code.
* This application echoes back data that was sent to it by the master core.
*/

#include <stdio.h>
#include <stdlib.h>
Expand Down
10 changes: 6 additions & 4 deletions apps/examples/matrix_multiply/matrix_multiply.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This is a sample demonstration application that showcases usage of remoteproc
and rpmsg APIs on the remote core. This application is meant to run on the remote CPU
running baremetal code. This applicationr receives two matrices from the master,
multiplies them and returns the result to the master core. */
/*
* This is a sample demonstration application that showcases usage of remoteproc
* and rpmsg APIs on the remote core. This application is meant to run on the remote CPU
* running baremetal code. This applicationr receives two matrices from the master,
* multiplies them and returns the result to the master core.
*/

#include <stdio.h>
#include <stdlib.h>
Expand Down
10 changes: 6 additions & 4 deletions apps/examples/matrix_multiply/matrix_multiplyd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This is a sample demonstration application that showcases usage of remoteproc
and rpmsg APIs on the remote core. This application is meant to run on the remote CPU
running baremetal code. This applicationr receives two matrices from the master,
multiplies them and returns the result to the master core. */
/*
* This is a sample demonstration application that showcases usage of remoteproc
* and rpmsg APIs on the remote core. This application is meant to run on the remote CPU
* running baremetal code. This applicationr receives two matrices from the master,
* multiplies them and returns the result to the master core.
*/

#include <stdio.h>
#include <stdlib.h>
Expand Down
8 changes: 5 additions & 3 deletions apps/examples/rpc_demo/rpc_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This is a sample demonstration application that showcases usage of proxy from the remote core.
This application is meant to run on the remote CPU running baremetal.
This application can print to the master console and perform file I/O using proxy mechanism. */
/*
* This is a sample demonstration application that showcases usage of proxy from the remote core.
* This application is meant to run on the remote CPU running baremetal.
* This application can print to the master console and perform file I/O using proxy mechanism.
*/

#include <stdio.h>
#include <string.h>
Expand Down
8 changes: 5 additions & 3 deletions apps/examples/rpc_demo/rpc_demod.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This is a sample demonstration application that showcases usage of proxy from the remote core.
This application is meant to run on the remote CPU running baremetal.
This applicationr can print to to master console and perform file I/O using proxy mechanism. */
/*
* This is a sample demonstration application that showcases usage of proxy from the remote core.
* This application is meant to run on the remote CPU running baremetal.
* This applicationr can print to to master console and perform file I/O using proxy mechanism.
*/

#include <errno.h>
#include <stdio.h>
Expand Down
3 changes: 2 additions & 1 deletion apps/machine/microblaze_generic/rsc_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This file populates resource table for BM remote
/*
* This file populates resource table for BM remote
* for use by the Linux Master
*/

Expand Down
6 changes: 4 additions & 2 deletions apps/machine/zynq7/rsc_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This file populates resource table for BM remote
* for use by the Linux Master */
/*
* This file populates resource table for BM remote
* for use by the Linux Master
*/

#include <openamp/open_amp.h>
#include "rsc_table.h"
Expand Down
6 changes: 4 additions & 2 deletions apps/machine/zynq7/rsc_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This file populates resource table for BM remote
* for use by the Linux Master */
/*
* This file populates resource table for BM remote
* for use by the Linux Master
*/

#ifndef RSC_TABLE_H_
#define RSC_TABLE_H_
Expand Down
6 changes: 4 additions & 2 deletions apps/machine/zynqmp/platform_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This file populates resource table for BM remote
* for use by the Linux Master */
/*
* This file populates resource table for BM remote
* for use by the Linux Master
*/

#ifndef PLATFORM_INFO_H_
#define PLATFORM_INFO_H_
Expand Down
6 changes: 4 additions & 2 deletions apps/machine/zynqmp_r5/rsc_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This file populates resource table for BM remote
* for use by the Linux Master */
/*
* This file populates resource table for BM remote
* for use by the Linux Master
*/

#include <openamp/open_amp.h>
#include "rsc_table.h"
Expand Down
6 changes: 4 additions & 2 deletions apps/machine/zynqmp_r5/rsc_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This file populates resource table for BM remote
* for use by the Linux Master */
/*
* This file populates resource table for BM remote
* for use by the Linux Master
*/

#ifndef RSC_TABLE_H_
#define RSC_TABLE_H_
Expand Down
6 changes: 4 additions & 2 deletions apps/system/linux/machine/generic/platform_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This file populates resource table for BM remote
* for use by the Linux Master */
/*
* This file populates resource table for BM remote
* for use by the Linux Master
*/

#ifndef PLATFORM_INFO_H
#define PLATFORM_INFO_H
Expand Down
6 changes: 4 additions & 2 deletions apps/system/linux/machine/generic/rsc_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This file populates resource table for BM remote
* for use by the Linux Master */
/*
* This file populates resource table for BM remote
* for use by the Linux Master
*/

#include <openamp/open_amp.h>
#include "rsc_table.h"
Expand Down
6 changes: 4 additions & 2 deletions apps/system/linux/machine/generic/rsc_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This file populates resource table for BM remote
* for use by the Linux Master */
/*
* This file populates resource table for BM remote
* for use by the Linux Master
*/

#ifndef RSC_TABLE_H_
#define RSC_TABLE_H_
Expand Down
3 changes: 2 additions & 1 deletion apps/tests/msg/rpmsg-flood-ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This is a test application to send rpmsgs in flood mode.
/*
* This is a test application to send rpmsgs in flood mode.
* That is it will keep sending messages until there is no available
* buffers.
*/
Expand Down
8 changes: 5 additions & 3 deletions apps/tests/msg/rpmsg-ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This is a sample demonstration application that showcases usage of rpmsg
This application is meant to run on the remote CPU running baremetal code.
This application echoes back data that was sent to it by the master core. */
/*
* This is a sample demonstration application that showcases usage of rpmsg
* This application is meant to run on the remote CPU running baremetal code.
* This application echoes back data that was sent to it by the master core.
*/

#include <stdio.h>
#include <stdlib.h>
Expand Down
8 changes: 5 additions & 3 deletions apps/tests/msg/rpmsg-update.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

/* This is a sample demonstration application that showcases usage of rpmsg
This application is meant to run on the remote CPU running baremetal code.
This application echoes back data that was sent to it by the master core. */
/*
* This is a sample demonstration application that showcases usage of rpmsg
* This application is meant to run on the remote CPU running baremetal code.
* This application echoes back data that was sent to it by the master core.
*/

#include <stdio.h>
#include <openamp/open_amp.h>
Expand Down

0 comments on commit ef7a9d0

Please sign in to comment.