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>
This commit is contained in:
Alexey Tulia 2015-11-21 15:36:47 +03:00 коммит произвёл Greg Kroah-Hartman
Родитель f9f853af84
Коммит e7bda76fa4
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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 */