staging: vt6655: Type conversion was made.
authorGulsah Kose <gulsah.1004@gmail.com>
Sun, 28 Sep 2014 16:42:37 +0000 (19:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 03:22:21 +0000 (23:22 -0400)
This patch fixes this sparse warning:
drivers/staging/vt6655/device_main.c:385:40: warning: mixing different enum types
drivers/staging/vt6655/device_main.c:385:40:     int enum _VIA_BB_TYPE versus
drivers/staging/vt6655/device_main.c:385:40:     int enum _VIA_PKT_TYPE

Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index 1dff9d4672b52818b6e56596c51a2b7259d275bf..54e16f40d8ed7447c8a8bb789298926a0aee3c6f 100644 (file)
@@ -381,7 +381,7 @@ device_set_options(struct vnt_private *pDevice)
        if (pDevice->uConnectionRate < RATE_AUTO)
                pDevice->bFixRate = true;
        pDevice->byBBType = pDevice->sOpts.bbp_type;
-       pDevice->byPacketType = pDevice->byBBType;
+       pDevice->byPacketType = (VIA_PKT_TYPE)pDevice->byBBType;
        pDevice->byAutoFBCtrl = AUTO_FB_0;
        pDevice->bUpdateBBVGA = true;
        pDevice->byFOETuning = 0;