From: H Hartley Sweeten Date: Tue, 4 Nov 2014 17:54:11 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: introduce apci3120_ai_reset_fifo() X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~328 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0bb66aa082c23741e85df459f7444f86cd86792;p=pandora-kernel.git staging: comedi: addi_apci_3120: introduce apci3120_ai_reset_fifo() A dummy read of APCI3120_TIMER_MODE_REG resets the analog input FIFO. Introduce a helper function to clarify this. It's not necessary to do a dummy read of the FIFO (base + 0) before reseting it. Remove the unnecessary dummy reads. The APCI3120_TIMER_MODE_REG is a 16-bit register. This fixes a couple 8-bit reads. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed