staging: comedi: amplc_pci230: fix a precedence bug
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 26 Aug 2014 07:55:51 +0000 (10:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:28:15 +0000 (13:28 -0700)
commit94254d1baec765b22cc5df3a9a16a8cc9a79d406
tree0d6f5336f6c5cf235bc4d990bd277c23e0401bfd
parent8075bfb67566376f706baa7cbc6b5b0e3eb99318
staging: comedi: amplc_pci230: fix a precedence bug

The addition operation has higher precedence than ?: so this would write
to PCI230_DACOUT1 instead of devpriv->daqio + PCI230_DACOUT1.

Fixes: 4f9c63fe5333 ('staging: comedi: amplc_pci230: refactor iobase addresses')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pci230.c