mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
staging: comedi: hwdrv_apci1500: introduce z8536_write()
The Z8536 CIO registers are indirectly written by writing the register offset to the control register then writing the value to the control register. Introduce a helper function to write the Z8536 CIO registers. The registers are written from "normal" code and in the interrupt handler, spinlock the sequence to protect the indirect register access. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
54c3ef4657
commit
8dbaadb931
1 changed files with 253 additions and 812 deletions
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue