From 2f002cc9b8c5e59d3e67a184d7b1520fed9e3094 Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Mon, 10 Sep 2012 18:55:54 -0700 Subject: [PATCH] staging: comedi: adl_pci9111: cleanup ai read in pci9111_ai_insn_read() The shift, maxdata, and invert values, used to handle the 12-/16-bit analog input differences, can be calculated based on the subdevice maxdata value. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed