diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-09-06 01:43:20 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-06 03:06:27 (GMT) |
commit | 2de13f1bac495eb354a442963dfc1eb5e7d5b134 (patch) | |
tree | 5bb534d54831662c2bf530ff1b04db84f15fb2b9 | |
parent | 6fc01d32a2b9e0ac2879e69b2d15caf4ad50c5f7 (diff) | |
download | linux-fsl-qoriq-2de13f1bac495eb354a442963dfc1eb5e7d5b134.tar.xz |
staging: comedi: gsc_hpdi: remove subdevice pointer math
Convert the comedi_subdevice access from pointer math to array
access.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/comedi/drivers/gsc_hpdi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/gsc_hpdi.c b/drivers/staging/comedi/drivers/gsc_hpdi.c index 79f5808..5d3fa71 100644 --- a/drivers/staging/comedi/drivers/gsc_hpdi.c +++ b/drivers/staging/comedi/drivers/gsc_hpdi.c @@ -436,7 +436,7 @@ static int setup_subdevices(struct comedi_device *dev) if (ret) return ret; - s = dev->subdevices + 0; + s = &dev->subdevices[0]; /* analog input subdevice */ dev->read_subdev = s; /* dev->write_subdev = s; */ |