[media] af9013: use true/false for boolean vars

Instead of using 0 or 1 for boolean, use the true/false
defines.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
Mauro Carvalho Chehab 2014-09-03 15:20:50 -03:00
parent 22bf3deb7e
commit 6a5e7fde3a
1 changed files with 12 additions and 12 deletions

View File

@ -683,7 +683,7 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
switch (c->transmission_mode) { switch (c->transmission_mode) {
case TRANSMISSION_MODE_AUTO: case TRANSMISSION_MODE_AUTO:
auto_mode = 1; auto_mode = true;
break; break;
case TRANSMISSION_MODE_2K: case TRANSMISSION_MODE_2K:
break; break;
@ -693,12 +693,12 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
default: default:
dev_dbg(&state->i2c->dev, "%s: invalid transmission_mode\n", dev_dbg(&state->i2c->dev, "%s: invalid transmission_mode\n",
__func__); __func__);
auto_mode = 1; auto_mode = true;
} }
switch (c->guard_interval) { switch (c->guard_interval) {
case GUARD_INTERVAL_AUTO: case GUARD_INTERVAL_AUTO:
auto_mode = 1; auto_mode = true;
break; break;
case GUARD_INTERVAL_1_32: case GUARD_INTERVAL_1_32:
break; break;
@ -714,12 +714,12 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
default: default:
dev_dbg(&state->i2c->dev, "%s: invalid guard_interval\n", dev_dbg(&state->i2c->dev, "%s: invalid guard_interval\n",
__func__); __func__);
auto_mode = 1; auto_mode = true;
} }
switch (c->hierarchy) { switch (c->hierarchy) {
case HIERARCHY_AUTO: case HIERARCHY_AUTO:
auto_mode = 1; auto_mode = true;
break; break;
case HIERARCHY_NONE: case HIERARCHY_NONE:
break; break;
@ -734,12 +734,12 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
break; break;
default: default:
dev_dbg(&state->i2c->dev, "%s: invalid hierarchy\n", __func__); dev_dbg(&state->i2c->dev, "%s: invalid hierarchy\n", __func__);
auto_mode = 1; auto_mode = true;
} }
switch (c->modulation) { switch (c->modulation) {
case QAM_AUTO: case QAM_AUTO:
auto_mode = 1; auto_mode = true;
break; break;
case QPSK: case QPSK:
break; break;
@ -751,7 +751,7 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
break; break;
default: default:
dev_dbg(&state->i2c->dev, "%s: invalid modulation\n", __func__); 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? */ /* 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) { switch (c->code_rate_HP) {
case FEC_AUTO: case FEC_AUTO:
auto_mode = 1; auto_mode = true;
break; break;
case FEC_1_2: case FEC_1_2:
break; break;
@ -778,12 +778,12 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
default: default:
dev_dbg(&state->i2c->dev, "%s: invalid code_rate_HP\n", dev_dbg(&state->i2c->dev, "%s: invalid code_rate_HP\n",
__func__); __func__);
auto_mode = 1; auto_mode = true;
} }
switch (c->code_rate_LP) { switch (c->code_rate_LP) {
case FEC_AUTO: case FEC_AUTO:
auto_mode = 1; auto_mode = true;
break; break;
case FEC_1_2: case FEC_1_2:
break; break;
@ -804,7 +804,7 @@ static int af9013_set_frontend(struct dvb_frontend *fe)
default: default:
dev_dbg(&state->i2c->dev, "%s: invalid code_rate_LP\n", dev_dbg(&state->i2c->dev, "%s: invalid code_rate_LP\n",
__func__); __func__);
auto_mode = 1; auto_mode = true;
} }
switch (c->bandwidth_hz) { switch (c->bandwidth_hz) {