asoc: aic326x codec: Fix compilation warnigs
Vijay Mali [Sat, 8 Jun 2013 07:43:13 +0000 (12:43 +0530)]
Add typecast in switch statement

Bug 1274537

Change-Id: I03fbce68d449500a3f1de60798e875d5905176eb
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/237042
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

sound/soc/codecs/aic3xxx/aic3xxx_cfw_ops.c

index 179d488..e825ee6 100644 (file)
@@ -430,7 +430,7 @@ static void aic3xxx_cfw_dlcmds(struct cfw_state *ps, struct cfw_block *pb)
                if (c->cid != CFW_CMD_BRANCH_IM &&
                    c->cid != CFW_CMD_BRANCH_ID && c->cid != CFW_CMD_NOP)
                        cond = 0;
-               switch (c->cid) {
+               switch ((int)(c->cid)) {
                case 0 ... (CFW_CMD_NOP - 1):
                        ps->ops->reg_write(ps->codec, c->reg.bpod,
                                           c->reg.data);