]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] af9013: use true/false for boolean vars
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 18:20:50 +0000 (15:20 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 20:59:14 +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/af9013.c

index ecf6388d2200608bd5d4f5327d7349e55a0ad6ed..8001690d7576c21579db9f0a8ac08846a5981328 100644 (file)
@@ -683,7 +683,7 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
 
        switch (c->transmission_mode) {
        case TRANSMISSION_MODE_AUTO:
-               auto_mode = 1;
+               auto_mode = true;
                break;
        case TRANSMISSION_MODE_2K:
                break;
@@ -693,12 +693,12 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
        default:
                dev_dbg(&state->i2c->dev, "%s: invalid transmission_mode\n",
                                __func__);
-               auto_mode = 1;
+               auto_mode = true;
        }
 
        switch (c->guard_interval) {
        case GUARD_INTERVAL_AUTO:
-               auto_mode = 1;
+               auto_mode = true;
                break;
        case GUARD_INTERVAL_1_32:
                break;
@@ -714,12 +714,12 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
        default:
                dev_dbg(&state->i2c->dev, "%s: invalid guard_interval\n",
                                __func__);
-               auto_mode = 1;
+               auto_mode = true;
        }
 
        switch (c->hierarchy) {
        case HIERARCHY_AUTO:
-               auto_mode = 1;
+               auto_mode = true;
                break;
        case HIERARCHY_NONE:
                break;
@@ -734,12 +734,12 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
                break;
        default:
                dev_dbg(&state->i2c->dev, "%s: invalid hierarchy\n", __func__);
-               auto_mode = 1;
+               auto_mode = true;
        }
 
        switch (c->modulation) {
        case QAM_AUTO:
-               auto_mode = 1;
+               auto_mode = true;
                break;
        case QPSK:
                break;
@@ -751,7 +751,7 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
                break;
        default:
                dev_dbg(&state->i2c->dev, "%s: invalid modulation\n", __func__);
-               auto_mode = 1;
+               auto_mode = true;
        }
 
        /* Use HP. How and which case we can switch to LP? */
@@ -759,7 +759,7 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
 
        switch (c->code_rate_HP) {
        case FEC_AUTO:
-               auto_mode = 1;
+               auto_mode = true;
                break;
        case FEC_1_2:
                break;
@@ -778,12 +778,12 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
        default:
                dev_dbg(&state->i2c->dev, "%s: invalid code_rate_HP\n",
                                __func__);
-               auto_mode = 1;
+               auto_mode = true;
        }
 
        switch (c->code_rate_LP) {
        case FEC_AUTO:
-               auto_mode = 1;
+               auto_mode = true;
                break;
        case FEC_1_2:
                break;
@@ -804,7 +804,7 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
        default:
                dev_dbg(&state->i2c->dev, "%s: invalid code_rate_LP\n",
                                __func__);
-               auto_mode = 1;
+               auto_mode = true;
        }
 
        switch (c->bandwidth_hz) {