]> www.infradead.org Git - users/jedix/linux-maple.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>
Sat, 15 Sep 2018 07:45:31 +0000 (09:45 +0200)
commit3e86f51576615af5e8baa7c38a1d3733f1eeff82
tree2d6a200bd68a8e8ad8ff4eb8ee1790b03b7c441b
parent120130a757247f3c2608fbba75e5cd7e55563a51
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