diff options
| author | H Hartley Sweeten <[email protected]> | 2015-09-24 17:52:06 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-09-29 03:32:21 +0200 |
| commit | 4ddf02bfd89e43dec940fa3f10c309f69888eda2 (patch) | |
| tree | 16ba06486ddd7a5e5b81041fa4d948b4684907ab | |
| parent | e7211492e36145b2a39e20354bb615b6b196d25c (diff) | |
staging: comedi: rtd520: remove unnecessary comments from rtd_ao_winsn()
These comments are cut-and-paste from the old skeleton driver. Remove
them.
Signed-off-by: H Hartley Sweeten <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | drivers/staging/comedi/drivers/rtd520.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/rtd520.c b/drivers/staging/comedi/drivers/rtd520.c index b4d8f591649d..02dcb229c967 100644 --- a/drivers/staging/comedi/drivers/rtd520.c +++ b/drivers/staging/comedi/drivers/rtd520.c @@ -1067,8 +1067,6 @@ static int rtd_ao_winsn(struct comedi_device *dev, writew(range & 7, dev->mmio + ((chan == 0) ? LAS0_DAC1_CTRL : LAS0_DAC2_CTRL)); - /* Writing a list of values to an AO channel is probably not - * very useful, but that's how the interface is defined. */ for (i = 0; i < insn->n; ++i) { int val = data[i] << 3; @@ -1081,7 +1079,6 @@ static int rtd_ao_winsn(struct comedi_device *dev, val = data[i] << 3; } - /* a typical programming sequence */ writew(val, devpriv->las1 + ((chan == 0) ? LAS1_DAC1_FIFO : LAS1_DAC2_FIFO)); writew(0, dev->mmio + ((chan == 0) ? LAS0_DAC1 : LAS0_DAC2)); @@ -1093,7 +1090,6 @@ static int rtd_ao_winsn(struct comedi_device *dev, return ret; } - /* return the number of samples read/written */ return i; } |