]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Wed, 8 Aug 2018 12:11:19 +0000 (14:11 +0200)
commit3315824cbcf69a26f08423976afea138843dc405
tree317c311fe325dc736506356eae46aacbbbdbb875
parent2fe1023f24871a86758902a7a9855d80f905d707
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