Commit cbad8cf4 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: comedi_test: reformat multi-line comments

Use the preferred style for multi-line comments.
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c27fc351
/* /*
comedi/drivers/comedi_test.c * comedi/drivers/comedi_test.c
*
* Generates fake waveform signals that can be read through
* the command interface. It does _not_ read from any board;
* it just generates deterministic waveforms.
* Useful for various testing purposes.
*
* Copyright (C) 2002 Joachim Wuttke <Joachim.Wuttke@icn.siemens.de>
* Copyright (C) 2002 Frank Mori Hess <fmhess@users.sourceforge.net>
*
* COMEDI - Linux Control and Measurement Device Interface
* Copyright (C) 2000 David A. Schleef <ds@schleef.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
Generates fake waveform signals that can be read through
the command interface. It does _not_ read from any board;
it just generates deterministic waveforms.
Useful for various testing purposes.
Copyright (C) 2002 Joachim Wuttke <Joachim.Wuttke@icn.siemens.de>
Copyright (C) 2002 Frank Mori Hess <fmhess@users.sourceforge.net>
COMEDI - Linux Control and Measurement Device Interface
Copyright (C) 2000 David A. Schleef <ds@schleef.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
/* /*
Driver: comedi_test * Driver: comedi_test
Description: generates fake waveforms * Description: generates fake waveforms
Author: Joachim Wuttke <Joachim.Wuttke@icn.siemens.de>, Frank Mori Hess * Author: Joachim Wuttke <Joachim.Wuttke@icn.siemens.de>, Frank Mori Hess
<fmhess@users.sourceforge.net>, ds * <fmhess@users.sourceforge.net>, ds
Devices: * Devices:
Status: works * Status: works
Updated: Sat, 16 Mar 2002 17:34:48 -0800 * Updated: Sat, 16 Mar 2002 17:34:48 -0800
*
This driver is mainly for testing purposes, but can also be used to * This driver is mainly for testing purposes, but can also be used to
generate sample waveforms on systems that don't have data acquisition * generate sample waveforms on systems that don't have data acquisition
hardware. * hardware.
*
Configuration options: * Configuration options:
[0] - Amplitude in microvolts for fake waveforms (default 1 volt) * [0] - Amplitude in microvolts for fake waveforms (default 1 volt)
[1] - Period in microseconds for fake waveforms (default 0.1 sec) * [1] - Period in microseconds for fake waveforms (default 0.1 sec)
*
Generates a sawtooth wave on channel 0, square wave on channel 1, additional * Generates a sawtooth wave on channel 0, square wave on channel 1, additional
waveforms could be added to other channels (currently they return flatline * waveforms could be added to other channels (currently they return flatline
zero volts). * zero volts).
*/
*/
#include <linux/module.h> #include <linux/module.h>
#include "../comedidev.h" #include "../comedidev.h"
...@@ -160,10 +160,10 @@ static unsigned short fake_waveform(struct comedi_device *dev, ...@@ -160,10 +160,10 @@ static unsigned short fake_waveform(struct comedi_device *dev,
} }
/* /*
This is the background routine used to generate arbitrary data. * This is the background routine used to generate arbitrary data.
It should run in the background; therefore it is scheduled by * It should run in the background; therefore it is scheduled by
a timer mechanism. * a timer mechanism.
*/ */
static void waveform_ai_interrupt(unsigned long arg) static void waveform_ai_interrupt(unsigned long arg)
{ {
struct comedi_device *dev = (struct comedi_device *)arg; struct comedi_device *dev = (struct comedi_device *)arg;
......
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