]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] m88ds3103: use true/false for boolean vars
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 18:24:29 +0000 (15:24 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 20:59:16 +0000 (17:59 -0300)
Instead of using 0 or 1 for boolean, use the true/false
defines.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/m88ds3103.c

index 6eae2c6198432beceb9b016582643bb2adff6741..81657e94c5a44dccb4ccea6e3164f02c67db05b5 100644 (file)
@@ -1063,16 +1063,16 @@ static int m88ds3103_set_voltage(struct dvb_frontend *fe,
 
        switch (fe_sec_voltage) {
        case SEC_VOLTAGE_18:
-               voltage_sel = 1;
-               voltage_dis = 0;
+               voltage_sel = true;
+               voltage_dis = false;
                break;
        case SEC_VOLTAGE_13:
-               voltage_sel = 0;
-               voltage_dis = 0;
+               voltage_sel = false;
+               voltage_dis = false;
                break;
        case SEC_VOLTAGE_OFF:
-               voltage_sel = 0;
-               voltage_dis = 1;
+               voltage_sel = false;
+               voltage_dis = true;
                break;
        default:
                dev_dbg(&priv->i2c->dev, "%s: invalid fe_sec_voltage\n",