Commit d5e59c96 authored by Anson Jacob's avatar Anson Jacob Committed by Greg Kroah-Hartman

staging: comedi: jr3_pci.c: Fix checkpatch warning

Fix checkpatch.pl warning 'line over 80 characters'
Remove extra space after /*
Signed-off-by: default avatarAnson Jacob <ansonjacob.aj@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1c454fab
...@@ -141,7 +141,7 @@ static void set_transforms(struct jr3_channel __iomem *channel, ...@@ -141,7 +141,7 @@ static void set_transforms(struct jr3_channel __iomem *channel,
{ {
int i; int i;
num &= 0x000f; /* Make sure that 0 <= num <= 15 */ num &= 0x000f; /* Make sure that 0 <= num <= 15 */
for (i = 0; i < 8; i++) { for (i = 0; i < 8; i++) {
set_u16(&channel->transforms[num].link[i].link_type, set_u16(&channel->transforms[num].link[i].link_type,
transf.link[i].link_type); transf.link[i].link_type);
...@@ -323,10 +323,10 @@ static int read_idm_word(const u8 *data, size_t size, int *pos, ...@@ -323,10 +323,10 @@ static int read_idm_word(const u8 *data, size_t size, int *pos,
int value; int value;
if (pos && val) { if (pos && val) {
/* Skip over non hex */ /* Skip over non hex */
for (; *pos < size && !isxdigit(data[*pos]); (*pos)++) for (; *pos < size && !isxdigit(data[*pos]); (*pos)++)
; ;
/* Collect value */ /* Collect value */
*val = 0; *val = 0;
for (; *pos < size; (*pos)++) { for (; *pos < size; (*pos)++) {
value = hex_to_bin(data[*pos]); value = hex_to_bin(data[*pos]);
...@@ -448,7 +448,8 @@ static int jr3_download_firmware(struct comedi_device *dev, ...@@ -448,7 +448,8 @@ static int jr3_download_firmware(struct comedi_device *dev,
return 0; return 0;
} }
static struct jr3_pci_poll_delay jr3_pci_poll_subdevice(struct comedi_subdevice *s) static struct jr3_pci_poll_delay
jr3_pci_poll_subdevice(struct comedi_subdevice *s)
{ {
struct jr3_pci_subdev_private *spriv = s->private; struct jr3_pci_subdev_private *spriv = s->private;
struct jr3_pci_poll_delay result = poll_delay_min_max(1000, 2000); struct jr3_pci_poll_delay result = poll_delay_min_max(1000, 2000);
...@@ -733,7 +734,7 @@ static int jr3_pci_auto_attach(struct comedi_device *dev, ...@@ -733,7 +734,7 @@ static int jr3_pci_auto_attach(struct comedi_device *dev,
} }
} }
/* Reset DSP card */ /* Reset DSP card */
writel(0, &devpriv->iobase->channel[0].reset); writel(0, &devpriv->iobase->channel[0].reset);
ret = comedi_load_firmware(dev, &comedi_to_pci_dev(dev)->dev, ret = comedi_load_firmware(dev, &comedi_to_pci_dev(dev)->dev,
...@@ -763,7 +764,7 @@ static int jr3_pci_auto_attach(struct comedi_device *dev, ...@@ -763,7 +764,7 @@ static int jr3_pci_auto_attach(struct comedi_device *dev,
data.copyright[i]) >> 8); data.copyright[i]) >> 8);
} }
/* Start card timer */ /* Start card timer */
for (i = 0; i < dev->n_subdevices; i++) { for (i = 0; i < dev->n_subdevices; i++) {
s = &dev->subdevices[i]; s = &dev->subdevices[i];
spriv = s->private; spriv = s->private;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment