staging: comedi: ni_mio_common: fix subdevice flags for PFI subdevice
commite083926b3e269d4064825dcf2ad50c636fddf8cf
authorIan Abbott <abbotti@mev.co.uk>
Mon, 6 Aug 2018 10:05:13 +0000 (6 11:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Aug 2018 12:11:19 +0000 (8 14:11 +0200)
tree317c311fe325dc736506356eae46aacbbbdbb875
parent532f14d973949948bf1a3f33e17a8548a30b33d5
staging: comedi: ni_mio_common: fix subdevice flags for PFI subdevice

The PFI subdevice flags indicate that the subdevice is readable and
writeable, but that is only true for the supported "M-series" boards,
not the older "E-series" boards.  Only set the SDF_READABLE and
SDF_WRITABLE subdevice flags for the M-series boards.  These two flags
are mainly for informational purposes.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_mio_common.c