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

staging: comedi: amplc_pci224: no need for '&function'

Remove the "address-of" operator when the operand is a function.
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 56eb5cbc
...@@ -1173,15 +1173,14 @@ static int pci224_attach_common(struct comedi_device *dev, ...@@ -1173,15 +1173,14 @@ static int pci224_attach_common(struct comedi_device *dev,
s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_CMD_WRITE; s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_CMD_WRITE;
s->n_chan = thisboard->ao_chans; s->n_chan = thisboard->ao_chans;
s->maxdata = (1 << thisboard->ao_bits) - 1; s->maxdata = (1 << thisboard->ao_bits) - 1;
s->insn_write = &pci224_ao_insn_write; s->insn_write = pci224_ao_insn_write;
s->insn_read = &pci224_ao_insn_read; s->insn_read = pci224_ao_insn_read;
s->len_chanlist = s->n_chan; s->len_chanlist = s->n_chan;
dev->write_subdev = s; dev->write_subdev = s;
s->do_cmd = &pci224_ao_cmd; s->do_cmd = pci224_ao_cmd;
s->do_cmdtest = &pci224_ao_cmdtest; s->do_cmdtest = pci224_ao_cmdtest;
s->cancel = &pci224_ao_cancel; s->cancel = pci224_ao_cancel;
s->munge = &pci224_ao_munge; s->munge = pci224_ao_munge;
/* Sort out channel range options. */ /* Sort out channel range options. */
if (thisboard->model == pci234_model) { if (thisboard->model == pci234_model) {
......
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