From d8dc10bf6888b586e284bca3e9f1a9da40590874 Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Wed, 28 May 2014 16:34:48 -0700 Subject: [PATCH] staging: comedi: adq12b: tidy up adq12b_ai_rinsn() For aesthetics, rename this function. Clean up the local variables by reusing 'val' instead of using separate variables for the: 'status' - use once to trigger the first A/D conversion 'hi' and 'lo' - used to read the A/D conversion result For aesthetics, change the final return to insn->n and remove the comment. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed