]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
staging: comedi: comedi.h: Do not use BIT macro
authorIan Abbott <abbotti@mev.co.uk>
Wed, 2 Mar 2016 14:27:37 +0000 (14:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Mar 2016 22:56:55 +0000 (14:56 -0800)
commit9cee3d40b166cc098ad91bcafe5fccccc31f07e3
tree9f7a95ec19e65d6c827afddf2db1c1e22077f247
parent2517cd144e71a76e276092423671c952951b7c10
staging: comedi: comedi.h: Do not use BIT macro

The "comedi.h" file is part of the user API for COMEDI devices, and is
intended to be migrated to "include/uapi/linux".  The `BIT` macro from
"include/linux/bitops.h" should not be used there.

Replace the use of the `BIT` macro with hexadecimal constants of the
same value.  The `BIT` macro replaced expressions of the form `(1 << N)`
in this file originally, but reverting back to that form would encourage
patches changing them back to use the `BIT` macro.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi.h