* [PATCH] Staging: dgnc: Add block comments /* and */ on a separate line in dgnc_tty.c.
@ 2016-02-20 23:29 Sandhya Bankar
0 siblings, 0 replies; only message in thread
From: Sandhya Bankar @ 2016-02-20 23:29 UTC (permalink / raw)
To: outreachy-kernel
Add block comments /* and */ on a separate line. The warning is reported by checkpatch.pl.
The preferred style for long (multi-line) comments is:
/*
*
*
*/
Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
---
drivers/staging/dgnc/dgnc_tty.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c
index b79eab0..21a50a4 100644
--- a/drivers/staging/dgnc/dgnc_tty.c
+++ b/drivers/staging/dgnc/dgnc_tty.c
@@ -443,7 +443,8 @@ void dgnc_tty_uninit(struct dgnc_board *brd)
brd->PrintDriver.termios = NULL;
}
-/*=======================================================================
+/*
+ *=======================================================================
*
* dgnc_wmove - Write data to transmit queue.
*
@@ -451,7 +452,8 @@ void dgnc_tty_uninit(struct dgnc_board *brd)
* buf - Pointer to characters to be moved.
* n - Number of characters to move.
*
- *=======================================================================*/
+ *=======================================================================
+ */
static void dgnc_wmove(struct channel_t *ch, char *buf, uint n)
{
int remain;
@@ -489,13 +491,15 @@ static void dgnc_wmove(struct channel_t *ch, char *buf, uint n)
ch->ch_w_head = head;
}
-/*=======================================================================
+/*
+ *=======================================================================
*
* dgnc_input - Process received data.
*
* ch - Pointer to channel structure.
*
- *=======================================================================*/
+ *=======================================================================
+ */
void dgnc_input(struct channel_t *ch)
{
struct dgnc_board *bd;
--
1.8.3.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-21 7:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-20 23:29 [PATCH] Staging: dgnc: Add block comments /* and */ on a separate line in dgnc_tty.c Sandhya Bankar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.