linux/drivers/staging
Ian Abbott beafb60389 staging: comedi: amplc_pci230: rewrite shared resource handling
Some counter channels may be required for AI commands and AO commands.
Depending on how the commands are set up, it may not be possible to run
both at the same time, so we keep some state and code to find out if the
required resources are busy or not.

The existing code is a bit unwieldy - the code for claiming resources
involves two `for` loops for example.  Rewrite it to make it simpler.

The new code just has a bit-mask value for each shared resource (counter
channels), and an array indexed by resource "owners" (AI and AO
commands), so the code for claiming resources now just has a single loop
that checks that none of the other owners have claimed the wanted
resources.

Rename the functions involved, because the old names involving 'put' and
'get' suggested some sort of usage counting.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-02 11:21:32 -07:00
..
android Merge 3.17-rc3 into staging-next 2014-08-31 20:53:12 -07:00
bcm Staging: bcm: fixed a comment coding style issue 2014-08-31 12:55:38 -07:00
board
comedi staging: comedi: amplc_pci230: rewrite shared resource handling 2014-09-02 11:21:32 -07:00
cptm1217
dgap staging: dgap: remove useless a variable within board_t 2014-08-30 14:04:58 -07:00
dgnc staging: dgnc: split two assignments into the two assignments on two lines. 2014-09-02 10:44:33 -07:00
emxx_udc Staging: emxx_udc: emxx_udc: remove spaces before semicolons 2014-08-30 14:07:38 -07:00
et131x staging: et131x: et131x.c: sparse warning of incompatible types 2014-09-02 10:57:03 -07:00
ft1000 drivers: staging: ft1000: Fix return is not a function, parentheses are not required errors 2014-09-02 10:48:32 -07:00
fwserial
gdm72xx Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-08-06 09:38:14 -07:00
gdm724x Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-08-06 09:38:14 -07:00
goldfish staging/goldfish/goldfish_audio: fix a sparse warning 2014-07-23 18:12:23 -07:00
gs_fpgaboot
iio staging:iio: Remove ad5930/ad9850/ad9852/ad9910/ad9951 dummy drivers 2014-08-19 20:25:10 +01:00
imx-drm staging: imx-drm: Lines over 80 characters fixed. 2014-08-30 14:06:48 -07:00
line6
lustre staging: lustre: Fix space prohibited between function name and open parenthesis 2014-09-02 10:32:58 -07:00
media Staging driver patches for 3.17-rc1 2014-08-04 18:36:12 -07:00
mt29f_spinand staging/mt29f_spinand: coding style fixes 2014-08-16 12:23:27 -07:00
netlogic staging: netlogic: Fix checkpatch.pl warning 2014-09-02 10:40:03 -07:00
nvec staging/nvec: Use platform_get_irq() 2014-07-30 17:18:47 -07:00
octeon
octeon-usb staging: octeon-usb: use USB_DIR_IN 2014-09-02 10:48:32 -07:00
olpc_dcon
ozwpan staging: ozwpan: Use list helpers 2014-08-16 12:23:12 -07:00
panel
rtl8188eu staging: rtl8188eu: Rename Hal8188EPwrSeq.h to pwrseq.h 2014-09-02 11:20:01 -07:00
rtl8192e staging: rtl8192e: fixed coding style issues 2014-08-30 13:54:03 -07:00
rtl8192ee staging: rtl8192ee: Fix RT_TRACE #define and uses 2014-08-16 12:23:11 -07:00
rtl8192u drivers: staging: rtl8192u: Fix switch and case should be at the same indent errors 2014-08-30 13:56:39 -07:00
rtl8712 staging:rtl8712:mlme_linux.c: Adds blank lines to pass checkpatch.pl 2014-07-30 17:05:56 -07:00
rtl8723au drivers: staging: rtl8723au: Fix return is not a function, parentheses are not required error 2014-09-02 10:48:32 -07:00
rtl8821ae drivers: staging: rtl8821ae: Fix spaces required around that '<' errors 2014-08-30 13:58:13 -07:00
rts5208 staging: rts5208: Remove casting the return value which is a void pointer 2014-08-30 14:07:37 -07:00
skein
slicoss staging: slicoss: fix a blank line coding style issue 2014-08-16 12:23:13 -07:00
speakup Update speakup mailing list address 2014-07-18 16:36:29 -07:00
ste_rmi4
unisys drivers/staging/unisys: fix build 2014-08-26 12:18:51 -07:00
vme staging: vme: remove redundant else condition 2014-08-30 14:06:47 -07:00
vt6655 staging: vt6655: Replace typedef enum _CARD_OP_MODE eOPMode with enum nl80211_iftype op_mode. 2014-08-30 15:19:17 -07:00
vt6656 staging: vt6656: add blank line after declaration 2014-08-16 12:23:17 -07:00
wlan-ng staging: wlan-ng: prism2mgmt.c Fix break not useful 2014-08-17 09:49:48 -07:00
xgifb
xillybus staging: xillybus: Removed read barrier at beginning of ISR 2014-08-30 13:14:41 -07:00
Kconfig Merge 3.17-rc3 into staging-next 2014-08-31 20:53:12 -07:00
Makefile Merge 3.17-rc3 into staging-next 2014-08-31 20:53:12 -07:00
staging.c