From: H Hartley Sweeten Date: Thu, 19 Jun 2014 17:20:32 +0000 (-0700) Subject: staging: comedi: ni_stc.h: add a 'is_m_series' flag to private data X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1921 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17733219fb577912520c478b9548ba2963c8500a;p=pandora-kernel.git staging: comedi: ni_stc.h: add a 'is_m_series' flag to private data The (board->reg_type & ni_reg_m_series_mask) test is commonly used in ni_mio_common.c to detect if the driver is being used with a National Instruments "M series" DAQ board. Simplify the code a bit by adding an 'is_m_series' bit-field flag to the private data. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed