* [PATCH] staging: dgnc: Fix lines over 80 characters
@ 2015-10-14 20:26 Cristina Moraru
2015-10-15 6:45 ` [Outreachy kernel] " Sudip Mukherjee
0 siblings, 1 reply; 5+ messages in thread
From: Cristina Moraru @ 2015-10-14 20:26 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Cristina Moraru
Fix 'line over 80 characters' checkpatch.pl
warnings
Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
---
drivers/staging/dgnc/dgnc_driver.h | 58 ++++++++++++++++++++++++++------------
1 file changed, 40 insertions(+), 18 deletions(-)
diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h
index c61884c..ce7cd9b 100644
--- a/drivers/staging/dgnc/dgnc_driver.h
+++ b/drivers/staging/dgnc/dgnc_driver.h
@@ -61,7 +61,9 @@
#define PORT_NUM(dev) ((dev) & 0x7f)
#define IS_PRINT(dev) (((dev) & 0xff) >= 0x80)
-/* MAX number of stop characters we will send when our read queue is getting full */
+/* MAX number of stop characters we will send
+ * when our read queue is getting full
+ */
#define MAX_STOPS_SENT 5
/* 4 extra for alignment play space */
@@ -165,12 +167,15 @@ struct dgnc_board {
uint maxports; /* MAX ports this board can handle */
unsigned char dvid; /* Board specific device id */
unsigned char vpd[128]; /* VPD of board, if found */
- unsigned char serial_num[20]; /* Serial number of board, if found in VPD */
+ unsigned char serial_num[20]; /* Serial number of board,
+ * if found in VPD
+ */
spinlock_t bd_lock; /* Used to protect board */
- spinlock_t bd_intr_lock; /* Used to protect the poller tasklet and
- * the interrupt routine from each other.
+ spinlock_t bd_intr_lock; /* Used to protect the poller tasklet
+ * and the interrupt routine from each
+ * other.
*/
uint state; /* State of card. */
@@ -189,14 +194,16 @@ struct dgnc_board {
ulong membase; /* Start of base memory of the card */
ulong membase_end; /* End of base memory of the card */
- u8 __iomem *re_map_membase;/* Remapped memory of the card */
+ u8 __iomem *re_map_membase; /* Remapped memory of the card */
ulong iobase; /* Start of io base of the card */
ulong iobase_end; /* End of io base of the card */
uint bd_uart_offset; /* Space between each UART */
- struct channel_t *channels[MAXPORTS]; /* array of pointers to our channels. */
+ struct channel_t *channels[MAXPORTS]; /* array of pointers
+ * to our channels.
+ */
struct tty_driver SerialDriver;
char SerialName[200];
@@ -211,8 +218,12 @@ struct dgnc_board {
uint TtyRefCnt;
- u16 dpatype; /* The board "type", as defined by DPA */
- u16 dpastatus; /* The board "status", as defined by DPA */
+ u16 dpatype; /* The board "type",
+ * as defined by DPA
+ */
+ u16 dpastatus; /* The board "status",
+ * as defined by DPA
+ */
/*
* Mgmt data.
@@ -304,7 +315,7 @@ struct un_t {
************************************************************************/
struct channel_t {
int magic; /* Channel Magic Number */
- struct dgnc_board *ch_bd; /* Board structure pointer */
+ struct dgnc_board *ch_bd; /* Board structure pointer */
struct digi_t ch_digi; /* Transparent Print structure */
struct un_t ch_tun; /* Terminal unit info */
struct un_t ch_pun; /* Printer unit info */
@@ -316,7 +327,9 @@ struct channel_t {
uint ch_open_count; /* open count */
uint ch_flags; /* Channel flags */
- ulong ch_close_delay; /* How long we should drop RTS/DTR for */
+ ulong ch_close_delay; /* How long we should
+ * drop RTS/DTR for
+ */
ulong ch_cpstime; /* Time for CPS calculations */
@@ -332,11 +345,15 @@ struct channel_t {
uint ch_wopen; /* Waiting for open process cnt */
- unsigned char ch_mostat; /* FEP output modem status */
- unsigned char ch_mistat; /* FEP input modem status */
+ unsigned char ch_mostat; /* FEP output modem status */
+ unsigned char ch_mistat; /* FEP input modem status */
- struct neo_uart_struct __iomem *ch_neo_uart; /* Pointer to the "mapped" UART struct */
- struct cls_uart_struct __iomem *ch_cls_uart; /* Pointer to the "mapped" UART struct */
+ struct neo_uart_struct __iomem *ch_neo_uart; /* Pointer to the
+ * "mapped" UART struct
+ */
+ struct cls_uart_struct __iomem *ch_cls_uart; /* Pointer to the
+ * "mapped" UART struct
+ */
unsigned char ch_cached_lsr; /* Cached value of the LSR register */
@@ -360,10 +377,13 @@ struct channel_t {
unsigned char ch_r_watermark; /* Receive Watermark */
- ulong ch_stop_sending_break; /* Time we should STOP sending a break */
+ ulong ch_stop_sending_break; /* Time we should STOP
+ * sending a break
+ */
- uint ch_stops_sent; /* How many times I have sent a stop character
- * to try to stop the other guy sending.
+ uint ch_stops_sent; /* How many times I have sent a stop
+ * character to try to stop the other
+ * guy sending.
*/
ulong ch_err_parity; /* Count of parity errors on channel */
ulong ch_err_frame; /* Count of framing errors on channel */
@@ -392,6 +412,8 @@ extern int dgnc_poll_tick; /* Poll interval - 20 ms */
extern spinlock_t dgnc_global_lock; /* Driver global spinlock */
extern spinlock_t dgnc_poll_lock; /* Poll scheduling lock */
extern uint dgnc_NumBoards; /* Total number of boards */
-extern struct dgnc_board *dgnc_Board[MAXBOARDS]; /* Array of board structs */
+extern struct dgnc_board *dgnc_Board[MAXBOARDS]; /* Array of board
+ * structs
+ */
#endif
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Outreachy kernel] [PATCH] staging: dgnc: Fix lines over 80 characters
2015-10-14 20:26 [PATCH] staging: dgnc: Fix lines over 80 characters Cristina Moraru
@ 2015-10-15 6:45 ` Sudip Mukherjee
2015-10-15 16:10 ` Julia Lawall
0 siblings, 1 reply; 5+ messages in thread
From: Sudip Mukherjee @ 2015-10-15 6:45 UTC (permalink / raw)
To: Cristina Moraru; +Cc: outreachy-kernel
On Wed, Oct 14, 2015 at 11:26:15PM +0300, Cristina Moraru wrote:
> Fix 'line over 80 characters' checkpatch.pl
> warnings
>
> Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
> ---
> drivers/staging/dgnc/dgnc_driver.h | 58 ++++++++++++++++++++++++++------------
> 1 file changed, 40 insertions(+), 18 deletions(-)
>
> diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h
> index c61884c..ce7cd9b 100644
> --- a/drivers/staging/dgnc/dgnc_driver.h
> +++ b/drivers/staging/dgnc/dgnc_driver.h
> @@ -61,7 +61,9 @@
> #define PORT_NUM(dev) ((dev) & 0x7f)
> #define IS_PRINT(dev) (((dev) & 0xff) >= 0x80)
>
> -/* MAX number of stop characters we will send when our read queue is getting full */
> +/* MAX number of stop characters we will send
> + * when our read queue is getting full
> + */
> #define MAX_STOPS_SENT 5
>
> /* 4 extra for alignment play space */
> @@ -165,12 +167,15 @@ struct dgnc_board {
> uint maxports; /* MAX ports this board can handle */
> unsigned char dvid; /* Board specific device id */
> unsigned char vpd[128]; /* VPD of board, if found */
> - unsigned char serial_num[20]; /* Serial number of board, if found in VPD */
> + unsigned char serial_num[20]; /* Serial number of board,
> + * if found in VPD
> + */
>
> spinlock_t bd_lock; /* Used to protect board */
>
> - spinlock_t bd_intr_lock; /* Used to protect the poller tasklet and
> - * the interrupt routine from each other.
> + spinlock_t bd_intr_lock; /* Used to protect the poller tasklet
> + * and the interrupt routine from each
> + * other.
> */
This is not the multiline comment style. It should be:
/*
* Used to protect the poller tasklet
* and the interrupt routine from each
* other.
*/
regards
sudip
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Outreachy kernel] [PATCH] staging: dgnc: Fix lines over 80 characters
2015-10-15 6:45 ` [Outreachy kernel] " Sudip Mukherjee
@ 2015-10-15 16:10 ` Julia Lawall
2015-10-26 15:53 ` Sudip Mukherjee
0 siblings, 1 reply; 5+ messages in thread
From: Julia Lawall @ 2015-10-15 16:10 UTC (permalink / raw)
To: Sudip Mukherjee; +Cc: Cristina Moraru, outreachy-kernel
> >
> > - spinlock_t bd_intr_lock; /* Used to protect the poller tasklet and
> > - * the interrupt routine from each other.
> > + spinlock_t bd_intr_lock; /* Used to protect the poller tasklet
> > + * and the interrupt routine from each
> > + * other.
> > */
> This is not the multiline comment style. It should be:
>
> /*
> * Used to protect the poller tasklet
> * and the interrupt routine from each
> * other.
> */
Not sure what you are suggesting. If you think that the comment should be
moved over to the leftmost column, then there is no need for so many
newlines. But maybe it would look odd with some comments on the far left
and some to the right of the declarations?
julia
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Outreachy kernel] [PATCH] staging: dgnc: Fix lines over 80 characters
2015-10-15 16:10 ` Julia Lawall
@ 2015-10-26 15:53 ` Sudip Mukherjee
2015-10-26 16:02 ` Julia Lawall
0 siblings, 1 reply; 5+ messages in thread
From: Sudip Mukherjee @ 2015-10-26 15:53 UTC (permalink / raw)
To: Julia Lawall; +Cc: Cristina Moraru, outreachy-kernel
On Thu, Oct 15, 2015 at 06:10:11PM +0200, Julia Lawall wrote:
> > >
> > > - spinlock_t bd_intr_lock; /* Used to protect the poller tasklet and
> > > - * the interrupt routine from each other.
> > > + spinlock_t bd_intr_lock; /* Used to protect the poller tasklet
> > > + * and the interrupt routine from each
> > > + * other.
> > > */
> > This is not the multiline comment style. It should be:
> >
> > /*
> > * Used to protect the poller tasklet
> > * and the interrupt routine from each
> > * other.
> > */
>
> Not sure what you are suggesting. If you think that the comment should be
> moved over to the leftmost column, then there is no need for so many
> newlines. But maybe it would look odd with some comments on the far left
> and some to the right of the declarations?
>
Hi Julia,
Sorry for the confusion. I was just suggesting about the multiline
comment style. It should have been:
- spinlock_t bd_intr_lock; /* Used to protect the poller tasklet and
- * the interrupt routine from each other.
+ spinlock_t bd_intr_lock; /*
+ * Used to protect the poller tasklet
+ * and the interrupt routine from each
+ * other.
*/
Regards
sudip
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Outreachy kernel] [PATCH] staging: dgnc: Fix lines over 80 characters
2015-10-26 15:53 ` Sudip Mukherjee
@ 2015-10-26 16:02 ` Julia Lawall
0 siblings, 0 replies; 5+ messages in thread
From: Julia Lawall @ 2015-10-26 16:02 UTC (permalink / raw)
To: Sudip Mukherjee; +Cc: Cristina Moraru, outreachy-kernel
On Mon, 26 Oct 2015, Sudip Mukherjee wrote:
> On Thu, Oct 15, 2015 at 06:10:11PM +0200, Julia Lawall wrote:
> > > >
> > > > - spinlock_t bd_intr_lock; /* Used to protect the poller tasklet and
> > > > - * the interrupt routine from each other.
> > > > + spinlock_t bd_intr_lock; /* Used to protect the poller tasklet
> > > > + * and the interrupt routine from each
> > > > + * other.
> > > > */
> > > This is not the multiline comment style. It should be:
> > >
> > > /*
> > > * Used to protect the poller tasklet
> > > * and the interrupt routine from each
> > > * other.
> > > */
> >
> > Not sure what you are suggesting. If you think that the comment should be
> > moved over to the leftmost column, then there is no need for so many
> > newlines. But maybe it would look odd with some comments on the far left
> > and some to the right of the declarations?
> >
> Hi Julia,
> Sorry for the confusion. I was just suggesting about the multiline
> comment style. It should have been:
>
> - spinlock_t bd_intr_lock; /* Used to protect the poller tasklet and
> - * the interrupt routine from each other.
> + spinlock_t bd_intr_lock; /*
> + * Used to protect the poller tasklet
> + * and the interrupt routine from each
> + * other.
> */
OK, looks fine.
julia
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-10-26 16:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-14 20:26 [PATCH] staging: dgnc: Fix lines over 80 characters Cristina Moraru
2015-10-15 6:45 ` [Outreachy kernel] " Sudip Mukherjee
2015-10-15 16:10 ` Julia Lawall
2015-10-26 15:53 ` Sudip Mukherjee
2015-10-26 16:02 ` Julia Lawall
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.