]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: amplc_dio200: Use IS_ENABLED()
authorIan Abbott <abbotti@mev.co.uk>
Thu, 31 May 2012 13:08:31 +0000 (14:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 03:49:19 +0000 (20:49 -0700)
commit71c4191748e150a03439ae4b0fa89d8949af9e43
treeefba3aad4a8e01c98b19e676bb6f8ca8b8d32f32
parentf3597c0acd6daf75864a58597cb0f8522b4429b0
staging: comedi: amplc_dio200: Use IS_ENABLED()

Change conditional compilation on kernel options to use the IS_ENABLED()
macro.  Remove most of the #ifdef lines and add extra if
(IS_ENABLED(xxx)) tests so the compiler can remove unreachable code.
The pci_driver stuff and device table and some of the static const data
is still conditionally compiled.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_dio200.c