linux/drivers/staging
Ian Abbott 104640606b staging: comedi: don't override read/write subdevice if not supported
For comedi devices that support asynchronous commands on some of their
subdevices, the comedi core creates extra device files for each of those
subdevices of the form "/dev/comedi%i_subd%i".  These use the same
comedi device as the corresponding "/dev/comedi%i" but override the
default "read" and "write" subdevice for the device.  Currently it
overrides both the read and write subdevice, but it only makes sense to
override the "read" subdevice if the subdevice supports "read" commands,
and to override the "write" subdevice if the subdevice supports "write"
commands.

In `comedi_alloc_subdevice_minor()`, only set `info->read_subdevice`
non-NULL if the subdevice has the `SDF_CMD_READ` flag set, and only set
`info->write_subdevice` non-NULL if the subdevice has the
`SDF_CMD_WRITE` flag set.  (`comedi_read_subdevice(info)` will use the
device's default read subdevice if `info->read_subdevice` is NULL.
`comedi_write_subdevice(info)` will use the device's default write
subdevice if `info->write_subdevice` is NULL.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-29 23:11:41 -05:00
..
android staging: alarm-dev: Implement compat_ioctl support 2013-01-18 12:37:11 -08:00
asus_oled
bcm Staging: bcm: copying more data than intended 2013-01-17 13:52:37 -08:00
ccg
ced1401 staging: ced1401: fix GFP_KERNEL in spinlock context 2013-01-11 16:44:10 -08:00
comedi staging: comedi: don't override read/write subdevice if not supported 2013-01-29 23:11:41 -05:00
cptm1217
crystalhd
csr staging/csr: Fix dereference before check 2013-01-07 14:56:04 -08:00
cxt1e1 staging: cxt1e1: buffer overflow in do_del_chan() 2013-01-25 11:21:26 -08:00
dgrp staging: dgrp: check for a valid proc dir entry pointer 2013-01-22 08:58:44 -08:00
echo staging: echo.c: fix memory leakage 2013-01-07 14:03:32 -08:00
et131x staging: et131x: Fix all sparse warnings 2013-01-22 09:15:18 -08:00
frontier
ft1000 Staging: ft1000-usb: Fix call to obsolete function 2013-01-07 12:33:45 -08:00
fwserial staging/fwserial: Update TODO file per reviewer comments 2013-01-07 11:16:49 -08:00
gdm72xx
goldfish goldfish: NAND flash driver 2013-01-24 13:53:23 -08:00
iio iio:light:tsl2563 move out of staging 2013-01-27 17:37:24 +00:00
imx-drm staging: ipu-di: Change DI address info to dev_dbg 2013-01-17 13:52:37 -08:00
keucr staging: keucr: Fix parens/braces 2013-01-07 12:59:25 -08:00
line6 staging: line6: clean up line6_variax_process_message() 2013-01-20 15:57:47 -08:00
media
net
nvec
octeon
olpc_dcon
omap-thermal staging: omap-thermal/omap-bandgap.c: adjust duplicate test 2013-01-21 14:00:10 -08:00
omapdrm Merge 3.8-rc5 into staging-next 2013-01-25 21:25:02 -08:00
ozwpan staging:ozwpan: Change email address. 2013-01-25 11:23:07 -08:00
panel
phison
quickstart
rtl8187se Merge branch 'staging-linus' into staging-next 2013-01-07 15:17:52 -08:00
rtl8192e staging: rtl8192e: Fix failure to check pci_map_single() 2013-01-07 12:57:27 -08:00
rtl8192u staging: rtl8192u: fixed coding style issues in r8192U_core.c 2013-01-11 16:37:11 -08:00
rtl8712 rtl8712: remove unused definitions from ethernet.h 2013-01-11 16:39:12 -08:00
rts5139
sb105x Merge 3.8-rc5 into staging-next 2013-01-25 21:25:02 -08:00
sbe-2t3e3
sep staging: sep: remove assignment to i and j in sep_crypto_setup 2013-01-22 08:58:44 -08:00
serqt_usb2
silicom
slicoss staging: slicoss: Fix space-related checkpatch.pl warnings 2013-01-17 13:53:06 -08:00
sm7xxfb
speakup Staging: speakup: kobjects.c: checkpatch.pl fixes 2013-01-17 13:31:07 -08:00
ste_rmi4
tidspbridge staging: tidspbridge/pmgr: another using strlcpy instead of strncpy 2013-01-21 14:00:10 -08:00
usbip staging: usbip: replace the interrupt safe spinlocks with common ones. 2013-01-22 09:00:10 -08:00
vme Merge branch 'staging-linus' into staging-next 2013-01-07 15:17:52 -08:00
vt6655 staging: vt6655: no braces needed for single statement if , for blocks 2013-01-17 13:17:03 -08:00
vt6656 Merge 3.8-rc5 into staging-next 2013-01-25 21:25:02 -08:00
winbond staging: Add angle bracket before and after the URL 2013-01-07 14:56:04 -08:00
wlags49_h2 staging: wlags49_h2: remove unneeded memset() in wireless_get_bssid() 2013-01-07 11:08:12 -08:00
wlags49_h25
wlan-ng Merge 3.8-rc5 into staging-next 2013-01-25 21:25:02 -08:00
xgifb staging: xgifb: delete pVBInfo->BaseAddr 2013-01-21 14:00:10 -08:00
zcache staging: zcache: fix ppc64 and other arches where PAGE_SIZE!=4K 2013-01-25 11:26:26 -08:00
zram Merge 3.8-rc5 into staging-next 2013-01-25 21:25:02 -08:00
zsmalloc staging: zsmalloc: comment zs_create_pool function 2013-01-15 23:49:55 -08:00
Kconfig goldfish: audio support 2013-01-24 13:51:38 -08:00
Makefile goldfish: audio support 2013-01-24 13:51:38 -08:00
staging.c