From: H Hartley Sweeten Date: Wed, 3 Dec 2014 18:25:33 +0000 (-0700) Subject: staging: comedi: hwdrv_apci1500: introduce z8536_write() X-Git-Tag: fixes-v4.0-rc1~99^2~615 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dbaadb93117c8aec77c5e97fb06c125c1e345cc;p=pandora-kernel.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed