Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vt6656: fix definitions of DEVICE_FLAGS_* flags

test_bit and set_bit take the bit number to operate on, rather than a
mask. This patch fixes the DEVICE_FLAGS_* definitions so that they represent
the bit index in priv->flags as opposed to the mask returned by the
BIT macro.

Signed-off-by: Alexey Tulia <alexey.tulia@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alexey Tulia and committed by
Greg Kroah-Hartman
e7bda76f f9f853af

+2 -2
+2 -2
drivers/staging/vt6656/device.h
··· 259 259 }; 260 260 261 261 /* flags for options */ 262 - #define DEVICE_FLAGS_UNPLUG BIT(0) 263 - #define DEVICE_FLAGS_DISCONNECTED BIT(1) 262 + #define DEVICE_FLAGS_UNPLUG 0 263 + #define DEVICE_FLAGS_DISCONNECTED 1 264 264 265 265 struct vnt_private { 266 266 /* mac80211 */