staging: comedi: ni_mio_common: fix subdevice flags for PFI subdevice
authorIan Abbott <abbotti@mev.co.uk>
Mon, 6 Aug 2018 10:05:13 +0000 (11:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Sep 2018 07:42:59 +0000 (09:42 +0200)
commit50f8c8e401f027ac650bd9441603cb51c3388801
tree0d5a49c09f2cc4943ddcdb207242804ad9afc8cb
parentc2910ee6e72ff5075326146b8727cb2c54741aa7
staging: comedi: ni_mio_common: fix subdevice flags for PFI subdevice

[ Upstream commit e083926b3e269d4064825dcf2ad50c636fddf8cf ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_mio_common.c