diff options
author | Gulsah Kose <[email protected]> | 2014-09-28 19:42:37 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2014-09-28 23:22:21 -0400 |
commit | a793b2d817dffce9f16af694fcce327bdefedbed (patch) | |
tree | ec8e89751818b365e561daad3a5429c56cfdf16c | |
parent | 9e23c1b8c3cab8fa69fa05a9c14113d74026eaf0 (diff) |
staging: vt6655: Type conversion was made.
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 <[email protected]>
Acked-by: Julia Lawall <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/staging/vt6655/device_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 1dff9d4672b5..54e16f40d8ed 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -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; |