Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353954
b: refs/heads/master
c: 8bd48c9
h: refs/heads/master
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Jan 7, 2013
1 parent 662c1f6 commit 19483a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea4f72b27985e21c846ffbff1a27871db4f8708e
refs/heads/master: 8bd48c9ef1f1af96dc699e67a8dc985046e6f22b
21 changes: 12 additions & 9 deletions trunk/drivers/staging/comedi/drivers/comedi_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ static const struct comedi_lrange waveform_ai_ranges = {
}
};

static short fake_sawtooth(struct comedi_device *dev, unsigned int range_index,
unsigned long current_time)
static unsigned short fake_sawtooth(struct comedi_device *dev,
unsigned int range_index,
unsigned long current_time)
{
struct waveform_private *devpriv = dev->private;
struct comedi_subdevice *s = dev->read_subdev;
Expand All @@ -109,9 +110,9 @@ static short fake_sawtooth(struct comedi_device *dev, unsigned int range_index,
return offset + value;
}

static short fake_squarewave(struct comedi_device *dev,
unsigned int range_index,
unsigned long current_time)
static unsigned short fake_squarewave(struct comedi_device *dev,
unsigned int range_index,
unsigned long current_time)
{
struct waveform_private *devpriv = dev->private;
struct comedi_subdevice *s = dev->read_subdev;
Expand All @@ -131,15 +132,17 @@ static short fake_squarewave(struct comedi_device *dev,
return offset + value;
}

static short fake_flatline(struct comedi_device *dev, unsigned int range_index,
unsigned long current_time)
static unsigned short fake_flatline(struct comedi_device *dev,
unsigned int range_index,
unsigned long current_time)
{
return dev->read_subdev->maxdata / 2;
}

/* generates a different waveform depending on what channel is read */
static short fake_waveform(struct comedi_device *dev, unsigned int channel,
unsigned int range, unsigned long current_time)
static unsigned short fake_waveform(struct comedi_device *dev,
unsigned int channel, unsigned int range,
unsigned long current_time)
{
enum {
SAWTOOTH_CHAN,
Expand Down

0 comments on commit 19483a5

Please sign in to comment.