* [PATCH] Staging: pi433: Fix line over 80 characters issue
@ 2019-03-05 17:13 Debleena Sen
2019-03-06 9:15 ` Greg KH
0 siblings, 1 reply; 8+ messages in thread
From: Debleena Sen @ 2019-03-05 17:13 UTC (permalink / raw)
To: gregkh, outreachy-kernel; +Cc: Debleena Sen
Break the lines after '&' and match the alignment with '(' to remove the
checkpatch.pl warning. Remove whitespace after '&' if any.
Signed-off-by: Debleena Sen <idebleenasen@gmail.com>
---
drivers/staging/pi433/rf69.c | 48 +++++++++++++++++++++++++++++---------------
1 file changed, 32 insertions(+), 16 deletions(-)
diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c
index 0c189a7..815fc9f 100644
--- a/drivers/staging/pi433/rf69.c
+++ b/drivers/staging/pi433/rf69.c
@@ -566,39 +566,55 @@ bool rf69_get_flag(struct spi_device *spi, enum flag flag)
return (rf69_read_reg(spi, REG_IRQFLAGS1) &
MASK_IRQFLAGS1_MODE_READY);
case ready_to_receive:
- return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_RX_READY);
+ return (rf69_read_reg(spi, REG_IRQFLAGS1) &
+ MASK_IRQFLAGS1_RX_READY);
case ready_to_send:
- return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_TX_READY);
+ return (rf69_read_reg(spi, REG_IRQFLAGS1) &
+ MASK_IRQFLAGS1_TX_READY);
case pll_locked:
- return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_PLL_LOCK);
+ return (rf69_read_reg(spi, REG_IRQFLAGS1) &
+ MASK_IRQFLAGS1_PLL_LOCK);
case rssi_exceeded_threshold:
- return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_RSSI);
+ return (rf69_read_reg(spi, REG_IRQFLAGS1) &
+ MASK_IRQFLAGS1_RSSI);
case timeout:
- return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_TIMEOUT);
+ return (rf69_read_reg(spi, REG_IRQFLAGS1) &
+ MASK_IRQFLAGS1_TIMEOUT);
case automode:
- return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_AUTOMODE);
+ return (rf69_read_reg(spi, REG_IRQFLAGS1) &
+ MASK_IRQFLAGS1_AUTOMODE);
case sync_address_match:
- return (rf69_read_reg(spi, REG_IRQFLAGS1) & MASK_IRQFLAGS1_SYNC_ADDRESS_MATCH);
+ return (rf69_read_reg(spi, REG_IRQFLAGS1) &
+ MASK_IRQFLAGS1_SYNC_ADDRESS_MATCH);
case fifo_full:
- return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_FIFO_FULL);
+ return (rf69_read_reg(spi, REG_IRQFLAGS2) &
+ MASK_IRQFLAGS2_FIFO_FULL);
/*
* case fifo_not_empty:
- * return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_FIFO_NOT_EMPTY);
+ * return (rf69_read_reg(spi, REG_IRQFLAGS2) &
+ * MASK_IRQFLAGS2_FIFO_NOT_EMPTY);
*/
case fifo_empty:
- return !(rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_FIFO_NOT_EMPTY);
+ return !(rf69_read_reg(spi, REG_IRQFLAGS2) &
+ MASK_IRQFLAGS2_FIFO_NOT_EMPTY);
case fifo_level_below_threshold:
- return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_FIFO_LEVEL);
+ return (rf69_read_reg(spi, REG_IRQFLAGS2) &
+ MASK_IRQFLAGS2_FIFO_LEVEL);
case fifo_overrun:
- return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_FIFO_OVERRUN);
+ return (rf69_read_reg(spi, REG_IRQFLAGS2) &
+ MASK_IRQFLAGS2_FIFO_OVERRUN);
case packet_sent:
- return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_PACKET_SENT);
+ return (rf69_read_reg(spi, REG_IRQFLAGS2) &
+ MASK_IRQFLAGS2_PACKET_SENT);
case payload_ready:
- return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_PAYLOAD_READY);
+ return (rf69_read_reg(spi, REG_IRQFLAGS2) &
+ MASK_IRQFLAGS2_PAYLOAD_READY);
case crc_ok:
- return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_CRC_OK);
+ return (rf69_read_reg(spi, REG_IRQFLAGS2) &
+ MASK_IRQFLAGS2_CRC_OK);
case battery_low:
- return (rf69_read_reg(spi, REG_IRQFLAGS2) & MASK_IRQFLAGS2_LOW_BAT);
+ return (rf69_read_reg(spi, REG_IRQFLAGS2) &
+ MASK_IRQFLAGS2_LOW_BAT);
default: return false;
}
}
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH] Staging: pi433: Fix line over 80 characters issue
@ 2019-03-04 6:05 Debleena Sen
2019-03-04 7:46 ` Greg KH
0 siblings, 1 reply; 8+ messages in thread
From: Debleena Sen @ 2019-03-04 6:05 UTC (permalink / raw)
To: gregkh, outreachy-kernel; +Cc: Debleena Sen
Delete extra whitespace and tab space to remove
checkpatch.pl warning:
WARNING: line over 80 characters
Signed-off-by: Debleena Sen <idebleenasen@gmail.com>
---
drivers/staging/pi433/pi433_if.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index b231463..53928af 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -45,10 +45,10 @@
#include "pi433_if.h"
#include "rf69.h"
-#define N_PI433_MINORS BIT(MINORBITS) /*32*/ /* ... up to 256 */
-#define MAX_MSG_SIZE 900 /* min: FIFO_SIZE! */
-#define MSG_FIFO_SIZE 65536 /* 65536 = 2^16 */
-#define NUM_DIO 2
+#define N_PI433_MINORS BIT(MINORBITS) /*32*/ /* ... up to 256 */
+#define MAX_MSG_SIZE 900 /* min: FIFO_SIZE! */
+#define MSG_FIFO_SIZE 65536 /* 65536 = 2^16 */
+#define NUM_DIO 2
static dev_t pi433_dev;
static DEFINE_IDR(pi433_idr);
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] Staging: pi433: Fix line over 80 characters issue
2019-03-04 6:05 Debleena Sen
@ 2019-03-04 7:46 ` Greg KH
2019-03-04 14:25 ` idebleenasen
0 siblings, 1 reply; 8+ messages in thread
From: Greg KH @ 2019-03-04 7:46 UTC (permalink / raw)
To: Debleena Sen; +Cc: outreachy-kernel
On Sun, Mar 03, 2019 at 10:05:30PM -0800, Debleena Sen wrote:
> Delete extra whitespace and tab space to remove
> checkpatch.pl warning:
> WARNING: line over 80 characters
>
> Signed-off-by: Debleena Sen <idebleenasen@gmail.com>
> ---
> drivers/staging/pi433/pi433_if.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
> index b231463..53928af 100644
> --- a/drivers/staging/pi433/pi433_if.c
> +++ b/drivers/staging/pi433/pi433_if.c
> @@ -45,10 +45,10 @@
> #include "pi433_if.h"
> #include "rf69.h"
>
> -#define N_PI433_MINORS BIT(MINORBITS) /*32*/ /* ... up to 256 */
> -#define MAX_MSG_SIZE 900 /* min: FIFO_SIZE! */
> -#define MSG_FIFO_SIZE 65536 /* 65536 = 2^16 */
> -#define NUM_DIO 2
> +#define N_PI433_MINORS BIT(MINORBITS) /*32*/ /* ... up to 256 */
> +#define MAX_MSG_SIZE 900 /* min: FIFO_SIZE! */
> +#define MSG_FIFO_SIZE 65536 /* 65536 = 2^16 */
The comment above should also use a tab, right?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Staging: pi433: Fix line over 80 characters issue
2019-03-04 7:46 ` Greg KH
@ 2019-03-04 14:25 ` idebleenasen
0 siblings, 0 replies; 8+ messages in thread
From: idebleenasen @ 2019-03-04 14:25 UTC (permalink / raw)
To: outreachy-kernel
[-- Attachment #1.1: Type: text/plain, Size: 1417 bytes --]
On Monday, March 4, 2019 at 1:16:54 PM UTC+5:30, gregkh wrote:
>
> On Sun, Mar 03, 2019 at 10:05:30PM -0800, Debleena Sen wrote:
> > Delete extra whitespace and tab space to remove
> > checkpatch.pl warning:
> > WARNING: line over 80 characters
> >
> > Signed-off-by: Debleena Sen <ideble...@gmail.com <javascript:>>
> > ---
> > drivers/staging/pi433/pi433_if.c | 8 ++++----
> > 1 file changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/staging/pi433/pi433_if.c
> b/drivers/staging/pi433/pi433_if.c
> > index b231463..53928af 100644
> > --- a/drivers/staging/pi433/pi433_if.c
> > +++ b/drivers/staging/pi433/pi433_if.c
> > @@ -45,10 +45,10 @@
> > #include "pi433_if.h"
> > #include "rf69.h"
> >
> > -#define N_PI433_MINORS BIT(MINORBITS)
> /*32*/ /* ... up to 256 */
> > -#define MAX_MSG_SIZE 900 /* min:
> FIFO_SIZE! */
> > -#define MSG_FIFO_SIZE 65536 /* 65536 = 2^16
> */
> > -#define NUM_DIO 2
> > +#define N_PI433_MINORS BIT(MINORBITS) /*32*/ /*
> ... up to 256 */
> > +#define MAX_MSG_SIZE 900 /* min: FIFO_SIZE! */
> > +#define MSG_FIFO_SIZE 65536 /* 65536 = 2^16 */
>
> The comment above should also use a tab, right?
>
> thanks,
>
> greg k-h
>
Yes. Should I resend it ?
[-- Attachment #1.2: Type: text/html, Size: 2596 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-03-06 9:52 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-05 17:13 [PATCH] Staging: pi433: Fix line over 80 characters issue Debleena Sen
2019-03-06 9:15 ` Greg KH
[not found] ` <CACw+u4GRhRY5kgjQgd-sYOLp4nfHU-tp_oKfK74i+QR7cnWQNg@mail.gmail.com>
[not found] ` <20190306094415.GA31537@kroah.com>
2019-03-06 9:47 ` Debleena Sen
2019-03-06 9:50 ` Fwd: " Debleena Sen
2019-03-06 9:52 ` [Outreachy kernel] " Julia Lawall
-- strict thread matches above, loose matches on Subject: below --
2019-03-04 6:05 Debleena Sen
2019-03-04 7:46 ` Greg KH
2019-03-04 14:25 ` idebleenasen
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.