aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-11-19 13:53:34 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2009-01-06 13:52:25 -0800
commit6d62a12bb0fde6a70eb18e2ba25e48f6fd5eee07 (patch)
tree5c4fd52ef141b5ffec78ecbbb2ce253ca12c2c23 /drivers
parent652dd4e7c78a2ad1fcf38c12e8be69651922c690 (diff)
Staging: comedi: fix comedi_fc.h checkpatch.pl issues.
This resolves all the resolvable checkpatch.pl issues in the comedi_fc.h file. Cc: David Schleef <ds@schleef.org> Cc: Frank Mori Hess <fmhess@users.sourceforge.net> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/comedi_fc.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/drivers/staging/comedi/drivers/comedi_fc.h b/drivers/staging/comedi/drivers/comedi_fc.h
index b8edd673edf..6952fe20f27 100644
--- a/drivers/staging/comedi/drivers/comedi_fc.h
+++ b/drivers/staging/comedi/drivers/comedi_fc.h
@@ -30,28 +30,30 @@
#include "../comedidev.h"
/* Writes an array of data points to comedi's buffer */
-extern unsigned int cfc_write_array_to_buffer(comedi_subdevice * subd,
- void *data, unsigned int num_bytes);
+extern unsigned int cfc_write_array_to_buffer(comedi_subdevice *subd,
+ void *data,
+ unsigned int num_bytes);
-static inline unsigned int cfc_write_to_buffer(comedi_subdevice * subd,
- sampl_t data)
+static inline unsigned int cfc_write_to_buffer(comedi_subdevice *subd,
+ sampl_t data)
{
return cfc_write_array_to_buffer(subd, &data, sizeof(data));
};
-static inline unsigned int cfc_write_long_to_buffer(comedi_subdevice * subd,
- lsampl_t data)
+static inline unsigned int cfc_write_long_to_buffer(comedi_subdevice *subd,
+ lsampl_t data)
{
return cfc_write_array_to_buffer(subd, &data, sizeof(data));
};
-extern unsigned int cfc_read_array_from_buffer(comedi_subdevice * subd,
- void *data, unsigned int num_bytes);
+extern unsigned int cfc_read_array_from_buffer(comedi_subdevice *subd,
+ void *data,
+ unsigned int num_bytes);
-extern unsigned int cfc_handle_events(comedi_device * dev,
- comedi_subdevice * subd);
+extern unsigned int cfc_handle_events(comedi_device *dev,
+ comedi_subdevice *subd);
-static inline unsigned int cfc_bytes_per_scan(comedi_subdevice * subd)
+static inline unsigned int cfc_bytes_per_scan(comedi_subdevice *subd)
{
int num_samples;
int bits_per_sample;
@@ -61,9 +63,8 @@ static inline unsigned int cfc_bytes_per_scan(comedi_subdevice * subd)
case COMEDI_SUBD_DO:
case COMEDI_SUBD_DIO:
bits_per_sample = 8 * bytes_per_sample(subd);
- num_samples =
- (subd->async->cmd.chanlist_len + bits_per_sample -
- 1) / bits_per_sample;
+ num_samples = (subd->async->cmd.chanlist_len +
+ bits_per_sample - 1) / bits_per_sample;
break;
default:
num_samples = subd->async->cmd.chanlist_len;