* [PATCH 0/2] Staging: panel: Fix checkpatch warnings
@ 2015-12-27 11:15 Ksenija Stanojevic
2015-12-27 11:16 ` [PATCH 1/2] Staging: panel: Fix line over 80 characters Ksenija Stanojevic
2015-12-27 11:17 ` [PATCH 2/2] Staging: panel: Remove space Ksenija Stanojevic
0 siblings, 2 replies; 6+ messages in thread
From: Ksenija Stanojevic @ 2015-12-27 11:15 UTC (permalink / raw)
To: willy; +Cc: gregkh, devel, linux-kernel, Ksenija Stanojevic
Fix checkpatch.pl warnings in panel.c
Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
Ksenija Stanojevic (2):
Staging: panel: Fix line over 80 characters
Staging: panel: Remove space
drivers/staging/panel/panel.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] Staging: panel: Fix line over 80 characters
2015-12-27 11:15 [PATCH 0/2] Staging: panel: Fix checkpatch warnings Ksenija Stanojevic
@ 2015-12-27 11:16 ` Ksenija Stanojevic
2015-12-30 5:01 ` Sudip Mukherjee
2015-12-27 11:17 ` [PATCH 2/2] Staging: panel: Remove space Ksenija Stanojevic
1 sibling, 1 reply; 6+ messages in thread
From: Ksenija Stanojevic @ 2015-12-27 11:16 UTC (permalink / raw)
To: willy; +Cc: gregkh, devel, linux-kernel, Ksenija Stanojevic
Split comment in order to fit into 80 characters per line.
Found by checkpatch.pl
Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
---
drivers/staging/panel/panel.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c
index 79ac192..7171c5d 100644
--- a/drivers/staging/panel/panel.c
+++ b/drivers/staging/panel/panel.c
@@ -947,7 +947,9 @@ static void lcd_clear_fast_s(void)
lcd_send_serial(0x5F); /* R/W=W, RS=1 */
lcd_send_serial(' ' & 0x0F);
lcd_send_serial((' ' >> 4) & 0x0F);
- usleep_range(40, 100); /* the shortest data takes at least 40 us */
+ usleep_range(40, 100); /* the shortest data
+ * takes at least 40 us
+ */
}
spin_unlock_irq(&pprt_lock);
--
1.9.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] Staging: panel: Remove space
2015-12-27 11:15 [PATCH 0/2] Staging: panel: Fix checkpatch warnings Ksenija Stanojevic
2015-12-27 11:16 ` [PATCH 1/2] Staging: panel: Fix line over 80 characters Ksenija Stanojevic
@ 2015-12-27 11:17 ` Ksenija Stanojevic
1 sibling, 0 replies; 6+ messages in thread
From: Ksenija Stanojevic @ 2015-12-27 11:17 UTC (permalink / raw)
To: willy; +Cc: gregkh, devel, linux-kernel, Ksenija Stanojevic
No space is necessary after a cast, therefore remove it.
Found by checkpatch.pl
Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
---
drivers/staging/panel/panel.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c
index 7171c5d..567b584 100644
--- a/drivers/staging/panel/panel.c
+++ b/drivers/staging/panel/panel.c
@@ -1790,7 +1790,7 @@ static void phys_scan_contacts(void)
gndmask = PNL_PINPUT(r_str(pprt)) & scan_mask_i;
/* grounded inputs are signals 40-44 */
- phys_read |= (pmask_t) gndmask << 40;
+ phys_read |= (pmask_t)gndmask << 40;
if (bitmask != gndmask) {
/*
@@ -1806,7 +1806,7 @@ static void phys_scan_contacts(void)
w_dtr(pprt, oldval & ~bitval); /* enable this output */
bitmask = PNL_PINPUT(r_str(pprt)) & ~gndmask;
- phys_read |= (pmask_t) bitmask << (5 * bit);
+ phys_read |= (pmask_t)bitmask << (5 * bit);
}
w_dtr(pprt, oldval); /* disable all outputs */
}
--
1.9.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] Staging: panel: Fix line over 80 characters
2015-12-27 11:16 ` [PATCH 1/2] Staging: panel: Fix line over 80 characters Ksenija Stanojevic
@ 2015-12-30 5:01 ` Sudip Mukherjee
2015-12-30 10:13 ` Ksenija Stanojević
0 siblings, 1 reply; 6+ messages in thread
From: Sudip Mukherjee @ 2015-12-30 5:01 UTC (permalink / raw)
To: Ksenija Stanojevic; +Cc: willy, devel, gregkh, linux-kernel
On Sun, Dec 27, 2015 at 12:16:15PM +0100, Ksenija Stanojevic wrote:
> Split comment in order to fit into 80 characters per line.
> Found by checkpatch.pl
>
> Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
> ---
Instead of multiline maybe this is better:
diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c
index 79ac192..3525919 100644
--- a/drivers/staging/panel/panel.c
+++ b/drivers/staging/panel/panel.c
@@ -947,7 +947,8 @@ static void lcd_clear_fast_s(void)
lcd_send_serial(0x5F); /* R/W=W, RS=1 */
lcd_send_serial(' ' & 0x0F);
lcd_send_serial((' ' >> 4) & 0x0F);
- usleep_range(40, 100); /* the shortest data takes at least 40 us */
+ /* the shortest data takes at least 40 us */
+ usleep_range(40, 100);
}
spin_unlock_irq(&pprt_lock);
regards
sudip
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] Staging: panel: Fix line over 80 characters
2015-12-30 5:01 ` Sudip Mukherjee
@ 2015-12-30 10:13 ` Ksenija Stanojević
2015-12-30 11:32 ` Sudip Mukherjee
0 siblings, 1 reply; 6+ messages in thread
From: Ksenija Stanojević @ 2015-12-30 10:13 UTC (permalink / raw)
To: Sudip Mukherjee; +Cc: willy, devel, Greg KH, linux-kernel
On Wed, Dec 30, 2015 at 6:01 AM, Sudip Mukherjee
<sudipm.mukherjee@gmail.com> wrote:
> On Sun, Dec 27, 2015 at 12:16:15PM +0100, Ksenija Stanojevic wrote:
>> Split comment in order to fit into 80 characters per line.
>> Found by checkpatch.pl
>>
>> Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
>> ---
>
> Instead of multiline maybe this is better:
>
> diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c
> index 79ac192..3525919 100644
> --- a/drivers/staging/panel/panel.c
> +++ b/drivers/staging/panel/panel.c
> @@ -947,7 +947,8 @@ static void lcd_clear_fast_s(void)
> lcd_send_serial(0x5F); /* R/W=W, RS=1 */
> lcd_send_serial(' ' & 0x0F);
> lcd_send_serial((' ' >> 4) & 0x0F);
> - usleep_range(40, 100); /* the shortest data takes at least 40 us */
> + /* the shortest data takes at least 40 us */
> + usleep_range(40, 100);
> }
> spin_unlock_irq(&pprt_lock);
It's already been done by Bijosh Thykkoottathil:
https://lkml.org/lkml/2015/12/18/681
Regards,
Ksenija
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] Staging: panel: Fix line over 80 characters
2015-12-30 10:13 ` Ksenija Stanojević
@ 2015-12-30 11:32 ` Sudip Mukherjee
0 siblings, 0 replies; 6+ messages in thread
From: Sudip Mukherjee @ 2015-12-30 11:32 UTC (permalink / raw)
To: Ksenija Stanojević; +Cc: willy, devel, Greg KH, linux-kernel
On Wed, Dec 30, 2015 at 11:13:40AM +0100, Ksenija Stanojević wrote:
> On Wed, Dec 30, 2015 at 6:01 AM, Sudip Mukherjee
> <sudipm.mukherjee@gmail.com> wrote:
> > On Sun, Dec 27, 2015 at 12:16:15PM +0100, Ksenija Stanojevic wrote:
> >> Split comment in order to fit into 80 characters per line.
> >> Found by checkpatch.pl
> >>
> >> Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com>
> >> ---
> >
> > Instead of multiline maybe this is better:
> >
> > diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c
> > index 79ac192..3525919 100644
> > --- a/drivers/staging/panel/panel.c
> > +++ b/drivers/staging/panel/panel.c
> > @@ -947,7 +947,8 @@ static void lcd_clear_fast_s(void)
> > lcd_send_serial(0x5F); /* R/W=W, RS=1 */
> > lcd_send_serial(' ' & 0x0F);
> > lcd_send_serial((' ' >> 4) & 0x0F);
> > - usleep_range(40, 100); /* the shortest data takes at least 40 us */
> > + /* the shortest data takes at least 40 us */
> > + usleep_range(40, 100);
> > }
> > spin_unlock_irq(&pprt_lock);
>
> It's already been done by Bijosh Thykkoottathil:
> https://lkml.org/lkml/2015/12/18/681
But I think not yet accepted by Greg. And his commit message doesnot
mention what coding style errors he has fixed. Usually Greg will not
accept them.
regards
sudip
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-12-30 11:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-27 11:15 [PATCH 0/2] Staging: panel: Fix checkpatch warnings Ksenija Stanojevic
2015-12-27 11:16 ` [PATCH 1/2] Staging: panel: Fix line over 80 characters Ksenija Stanojevic
2015-12-30 5:01 ` Sudip Mukherjee
2015-12-30 10:13 ` Ksenija Stanojević
2015-12-30 11:32 ` Sudip Mukherjee
2015-12-27 11:17 ` [PATCH 2/2] Staging: panel: Remove space Ksenija Stanojevic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox