staging: dgnc: Fix long line and spelling mistake
PATCH 1/1 staging: dgnc: Fix long line and spelling mistake
This patch fixes the checkpatch.pl warning:
Line over 80 characters.
Also, the word 'because' was spelled as
'Becuz' and has been corrected.
--- drivers/staging/dgnc/dgnc_neo.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-)
drivers/staging/dgnc/dgnc_neo.c +18 -6
@@ -107,7 +107,9 @@ static inline void neo_set_cts_flow_control(struct channel_t *ch)/* Turn off auto Xon flow control */ efr &= ~UART_17158_EFR_IXON ; -/* Why? Becuz Exar's spec says we have to zero it out before setting it */ +/* Why? Because Exar's spec says we have to zero it +* out before setting it +*/ writeb (0 , &ch->ch_neo_uart->efr);/* Turn on UART enhanced bits */
@@ -143,7 +145,9 @@ static inline void neo_set_rts_flow_control(struct channel_t *ch) ier &= ~UART_17158_IER_XOFF ; efr &= ~UART_17158_EFR_IXOFF ; -/* Why? Becuz Exar's spec says we have to zero it out before setting it */ +/* Why? Because Exar's spec says we have to zero it +* out before setting it +*/ writeb (0 , &ch->ch_neo_uart->efr);/* Turn on UART enhanced bits */
@@ -181,7 +185,9 @@ static inline void neo_set_ixon_flow_control(struct channel_t *ch)/* Turn on auto Xon flow control */ efr |= (UART_17158_EFR_ECB |UART_17158_EFR_IXON ); -/* Why? Becuz Exar's spec says we have to zero it out before setting it */ +/* Why? Because Exar's spec says we have to zero it +* out before setting it +*/ writeb (0 , &ch->ch_neo_uart->efr);/* Turn on UART enhanced bits */
@@ -219,7 +225,9 @@ static inline void neo_set_ixoff_flow_control(struct channel_t *ch) ier |=UART_17158_IER_XOFF ; efr |= (UART_17158_EFR_ECB |UART_17158_EFR_IXOFF ); -/* Why? Becuz Exar's spec says we have to zero it out before setting it */ +/* Why? Because Exar's spec says we have to zero it +* out before setting it +*/ writeb (0 , &ch->ch_neo_uart->efr);/* Turn on UART enhanced bits */
@@ -260,7 +268,9 @@ static inline void neo_set_no_input_flow_control(struct channel_t *ch)else efr &= ~(UART_17158_EFR_ECB |UART_17158_EFR_IXOFF ); -/* Why? Becuz Exar's spec says we have to zero it out before setting it */ +/* Why? Because Exar's spec says we have to zero +* it out before setting it +*/ writeb (0 , &ch->ch_neo_uart->efr);/* Turn on UART enhanced bits */
@@ -298,7 +308,9 @@ static inline void neo_set_no_output_flow_control(struct channel_t *ch)else efr &= ~(UART_17158_EFR_ECB |UART_17158_EFR_IXON ); -/* Why? Becuz Exar's spec says we have to zero it out before setting it */ +/* Why? Because Exar's spec says we have to zero it +* out before setting it +*/ writeb (0 , &ch->ch_neo_uart->efr);/* Turn on UART enhanced bits */
Signature · 1 line
2.7.4
Quoted 4 lines · Rehas Sachdeva
This patch fixes the checkpatch.pl warning:
Line over 80 characters.
Also, the word 'because' was spelled as
'Becuz' and has been corrected.
While the commit message should not exceed 80 characters, it is also nicer if it is not too short. The last sentence could probably fit on one line.
julia
Quoted 86 lines
Signed-off-by Rehas Sachdeva <[email protected]>--- drivers/staging/dgnc/dgnc_neo.c | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-)drivers/staging/dgnc/dgnc_neo.c +18
-7@@ -107,7 +107,9 @@ static inline void neo_set_cts_flow_control(struct channel_t *ch)/* Turn off auto Xon flow control */ efr &= ~UART_17158_EFR_IXON ; -/* Why? Becuz Exar's spec says we have to zero it out before setting it */ +/* Why? Because Exar's spec says we have to zero it +* out before setting it +*/ writeb (0 , &ch->ch_neo_uart->efr);/* Turn on UART enhanced bits */ @@ -143,7 +145,9 @@ static inline void neo_set_rts_flow_control(struct channel_t *ch) ier &= ~UART_17158_IER_XOFF ; efr &= ~UART_17158_EFR_IXOFF ; -/* Why? Becuz Exar's spec says we have to zero it out before setting it */ +/* Why? Because Exar's spec says we have to zero it +* out before setting it +*/ writeb (0 , &ch->ch_neo_uart->efr);/* Turn on UART enhanced bits */ @@ -181,7 +185,9 @@ static inline void neo_set_ixon_flow_control(struct channel_t *ch)/* Turn on auto Xon flow control */ efr |= (UART_17158_EFR_ECB |UART_17158_EFR_IXON ); -/* Why? Becuz Exar's spec says we have to zero it out before setting it */ +/* Why? Because Exar's spec says we have to zero it +* out before setting it +*/ writeb (0 , &ch->ch_neo_uart->efr);/* Turn on UART enhanced bits */ @@ -219,7 +225,9 @@ static inline void neo_set_ixoff_flow_control(struct channel_t *ch) ier |=UART_17158_IER_XOFF ; efr |= (UART_17158_EFR_ECB |UART_17158_EFR_IXOFF ); -/* Why? Becuz Exar's spec says we have to zero it out before setting it */ +/* Why? Because Exar's spec says we have to zero it +* out before setting it +*/ writeb (0 , &ch->ch_neo_uart->efr);/* Turn on UART enhanced bits */ @@ -260,7 +268,9 @@ static inline void neo_set_no_input_flow_control(struct channel_t *ch)else efr &= ~(UART_17158_EFR_ECB |UART_17158_EFR_IXOFF ); -/* Why? Becuz Exar's spec says we have to zero it out before setting it */ +/* Why? Because Exar's spec says we have to zero +* it out before setting it +*/ writeb (0 , &ch->ch_neo_uart->efr);/* Turn on UART enhanced bits */ @@ -298,7 +308,9 @@ static inline void neo_set_no_output_flow_control(struct channel_t *ch)else efr &= ~(UART_17158_EFR_ECB |UART_17158_EFR_IXON ); -/* Why? Becuz Exar's spec says we have to zero it out before setting it */ +/* Why? Because Exar's spec says we have to zero it +* out before setting it +*/ writeb (0 , &ch->ch_neo_uart->efr);/* Turn on UART enhanced bits */ --2.7.4
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160914142656.GA3298%40toblerone.
For more options, visit https://groups.google.com/d/optout.