From: H Hartley Sweeten Date: Thu, 6 Sep 2012 01:40:49 +0000 (-0700) Subject: staging: comedi: dt2817: remove subdevice pointer math X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d784e4c33f93ceacf609b796aa53e33fc17ce8fe;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git staging: comedi: dt2817: remove subdevice pointer math Convert the comedi_subdevice access from pointer math to array access. Signed-off-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/dt2817.c b/drivers/staging/comedi/drivers/dt2817.c index beba0447b3e..502e42e0753 100644 --- a/drivers/staging/comedi/drivers/dt2817.c +++ b/drivers/staging/comedi/drivers/dt2817.c @@ -141,7 +141,7 @@ static int dt2817_attach(struct comedi_device *dev, struct comedi_devconfig *it) if (ret) return ret; - s = dev->subdevices + 0; + s = &dev->subdevices[0]; s->n_chan = 32; s->type = COMEDI_SUBD_DIO;