From: Alexey Tulia Date: Sat, 21 Nov 2015 12:36:47 +0000 (+0300) Subject: staging: vt6656: fix definitions of DEVICE_FLAGS_* flags X-Git-Tag: v5.15~14007^2~1115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7bda76fa4f54df7021e1014a9d20c5a050ca919;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h index 76b5f41..4832666 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 */