diff options
author | Alexey Tulia | 2015-11-21 13:36:47 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-02-08 04:03:24 +0100 |
commit | e7bda76fa4f54df7021e1014a9d20c5a050ca919 (patch) | |
tree | 883ccd253a507b2efdbe46bd3d97aebbfa3f9bcb /drivers/staging/vt6656/device.h | |
parent | staging: vt6655: mac.c replace void __iomem * with struct vnt_private (diff) | |
download | kernel-qcow2-linux-e7bda76fa4f54df7021e1014a9d20c5a050ca919.tar.gz kernel-qcow2-linux-e7bda76fa4f54df7021e1014a9d20c5a050ca919.tar.xz kernel-qcow2-linux-e7bda76fa4f54df7021e1014a9d20c5a050ca919.zip |
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>
Diffstat (limited to 'drivers/staging/vt6656/device.h')
-rw-r--r-- | drivers/staging/vt6656/device.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h index 76b5f4127f95..4832666cc580 100644 --- a/drivers/staging/vt6656/device.h +++ b/drivers/staging/vt6656/device.h @@ -259,8 +259,8 @@ enum { }; /* flags for options */ -#define DEVICE_FLAGS_UNPLUG BIT(0) -#define DEVICE_FLAGS_DISCONNECTED BIT(1) +#define DEVICE_FLAGS_UNPLUG 0 +#define DEVICE_FLAGS_DISCONNECTED 1 struct vnt_private { /* mac80211 */ |