lkml.org 
[lkml]   [2012]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 10/11] Staging: comedi: fix line over 80 character issue in jr3_pci.c
Date
This is a patch to the jr3_pci.c file that fixes up a line
over 80 character warning found by the checkpatch.pl tool.

Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
---
drivers/staging/comedi/drivers/jr3_pci.c | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/comedi/drivers/jr3_pci.c b/drivers/staging/comedi/drivers/jr3_pci.c
index 6a79ba1..98f617c 100644
--- a/drivers/staging/comedi/drivers/jr3_pci.c
+++ b/drivers/staging/comedi/drivers/jr3_pci.c
@@ -461,7 +461,10 @@ static int jr3_download_firmware(struct comedi_device *dev, const u8 * data,
i, count, addr);
while (more && count > 0) {
if (addr & 0x4000) {
- /* 16 bit data, never seen in real life!! */
+ /*
+ * 16 bit data, never seen
+ * in real life!!
+ */
unsigned int data1;

more = more
@@ -547,7 +550,10 @@ static struct poll_delay_t jr3_pci_poll_subdevice(struct comedi_subdevice *s)
case state_jr3_init_wait_for_offset:{
p->retries++;
if (p->retries < 10) {
- /* Wait for offeset to stabilize (< 10 s according to manual) */
+ /*
+ * Wait for offeset to stabilize
+ * (< 10 s according to manual)
+ */
result = poll_delay_min_max(1000, 2000);
} else {
struct transform_t transf;
@@ -576,7 +582,8 @@ static struct poll_delay_t jr3_pci_poll_subdevice(struct comedi_subdevice *s)
use_transform(channel, 0);
p->state =
state_jr3_init_transform_complete;
- result = poll_delay_min_max(20, 100); /* Allow 20 ms for completion */
+ /* Allow 20 ms for completion */
+ result = poll_delay_min_max(20, 100);
}
} break;
case state_jr3_init_transform_complete:{
@@ -630,7 +637,10 @@ static struct poll_delay_t jr3_pci_poll_subdevice(struct comedi_subdevice *s)
} else {
volatile struct force_array *full_scale;

- /* Use ranges in kN or we will overflow arount 2000N! */
+ /*
+ * Use ranges in kN or we will
+ * overflow around 2000N!
+ */
full_scale = &channel->full_scale;
p->range[0].range.min =
-get_s16(&full_scale->fx) * 1000;
--
1.7.0.4


\
 
 \ /
  Last update: 2012-01-04 13:45    [W:0.038 / U:0.688 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site