From: H Hartley Sweeten Date: Thu, 29 May 2014 17:35:10 +0000 (-0700) Subject: staging: comedi: adl_pci9111: simplify A/D trigger selection code X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1971 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e18c5284ad4ba93eafd1f1f528bff21a962e5d0;p=pandora-kernel.git staging: comedi: adl_pci9111: simplify A/D trigger selection code The functions pci9111_trigger_source_set(), pci9111_pretrigger_set(), and pci9111_autoscan_set() are all used to select the A/D trigger type. They all do a read/mask/set/write of the A/D Trigger Mode Control register. Simplify the code by removing these helper functions and combining all the trigger bits so that a single write can be used to set the register. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed