Skip to content

Commit

Permalink
staging: comedi: comedi_test: rename waveform_ai_interrupt()
Browse files Browse the repository at this point in the history
`waveform_ai_interrupt()` is a timer expiry function used to generate
fake waveform data for an analog input subdevice.  Rename it to
`waveform_ai_timer()`.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Oct 28, 2015
1 parent 1eb85ae commit 9406a31
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/comedi/drivers/comedi_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static unsigned short fake_waveform(struct comedi_device *dev,
* It should run in the background; therefore it is scheduled by
* a timer mechanism.
*/
static void waveform_ai_interrupt(unsigned long arg)
static void waveform_ai_timer(unsigned long arg)
{
struct comedi_device *dev = (struct comedi_device *)arg;
struct waveform_private *devpriv = dev->private;
Expand Down Expand Up @@ -486,8 +486,7 @@ static int waveform_attach(struct comedi_device *dev,
for (i = 0; i < s->n_chan; i++)
devpriv->ao_loopbacks[i] = s->maxdata / 2;

setup_timer(&devpriv->ai_timer, waveform_ai_interrupt,
(unsigned long)dev);
setup_timer(&devpriv->ai_timer, waveform_ai_timer, (unsigned long)dev);

dev_info(dev->class_dev,
"%s: %u microvolt, %u microsecond waveform attached\n",
Expand Down

0 comments on commit 9406a31

Please sign in to comment.