From: Ian Abbott Date: Mon, 1 Sep 2014 11:03:53 +0000 (+0100) Subject: staging: comedi: amplc_pci230: replace `state` member with bitfields X-Git-Tag: fixes-for-v3.18-merge-window~15^2~813 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b0ff3dc5e3d86ada66afcaab46a766d326facd4;p=pandora-kernel.git staging: comedi: amplc_pci230: replace `state` member with bitfields The `state` member of `struct pci230_private` is used with the atomic bit-op functions and has a couple of bits defined, `AI_CMD_STARTED` and `AO_CMD_STARTED`. Spin-locks are used to protect the clearing of these bits and other stuff. No special protection is used for setting these bits. Replace the `state` member with a couple of new, single-bit bitfield members, `ai_cmd_started` and `ao_cmd_started` to save some space. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed