linux/drivers/media/dvb-frontends
Mauro Carvalho Chehab 746f7ae0e9 [media] dib8000: Fix sub-channel range
isdbt_sb_subchannel is unsigned with 8 bits. So, it will
never be -1. Instead, any value bigger than 13 is invalid.

As is, the current code generates the following warnings:

drivers/media/dvb-frontends/dib8000.c: In function 'dib8000_set_isdbt_common_channel':
drivers/media/dvb-frontends/dib8000.c:2358:3: warning: comparison is always true due to limited range of data type [-Wtype-limits]
drivers/media/dvb-frontends/dib8000.c: In function 'dib8000_tune':
drivers/media/dvb-frontends/dib8000.c:3107:8: warning: comparison is always false due to limited range of data type [-Wtype-limits]
drivers/media/dvb-frontends/dib8000.c:3153:9: warning: comparison is always false due to limited range of data type [-Wtype-limits]
drivers/media/dvb-frontends/dib8000.c:3160:5: warning: comparison is always false

It should also be noticed that ARIB STD-B31, item
"3.15.6.8 Number of segments" at TMCC table defines the
value 15 for unused segment, and 14 as reserved.

So, better to change the check to consider any value
bigger than 13 to mean that sub-channels should be
disabled, fixing the warning and doing the right thing
even if an invalid value is filled by userspace.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-04-25 15:13:49 -03:00
..
a8293.c [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
a8293.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
af9013_priv.h [media] af9013: use Kernel dev_foo() logging 2012-09-23 20:10:27 -03:00
af9013.c [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
af9013.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
af9033_priv.h [media] af9033: add IT9135 tuner config "62" init table 2013-03-21 19:04:25 -03:00
af9033.c [media] af9033: implement i/o optimized reg table writer 2013-03-21 19:06:00 -03:00
af9033.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
atbm8830_priv.h
atbm8830.c
atbm8830.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
au8522_common.c
au8522_decoder.c [media] au8522_decoder: remove obsolete control ops 2013-03-25 15:10:29 -03:00
au8522_dig.c
au8522_priv.h [media] au8522_decoder: convert to the control framework 2013-03-25 15:09:59 -03:00
au8522.h [media] Fix undefined reference to `au8522_attach' 2013-03-26 08:37:48 -03:00
bcm3510_priv.h
bcm3510.c [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
bcm3510.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
bsbe1-d01a.h
bsbe1.h
bsru6.h
cx22700.c [media] dvb-frontends: get rid of some "always false" warnings 2012-10-28 07:38:44 -02:00
cx22700.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
cx22702.c
cx22702.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
cx24110.c [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
cx24110.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
cx24113.c
cx24113.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
cx24116.c [media] dvb-frontends: Replace memcpy with struct assignment 2012-12-27 19:03:15 -02:00
cx24116.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
cx24123.c [media] cx24123: improve precision when calculating symbol rate ratio 2013-04-08 07:12:44 -03:00
cx24123.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
cxd2820r_c.c [media] cxd2820r: use Kernel GPIO for GPIO access 2012-09-27 14:33:58 -03:00
cxd2820r_core.c [media] cxd2820r_t2: Multistream support (MultiPLP) 2013-04-08 07:13:02 -03:00
cxd2820r_priv.h [media] cxd2820r: use Kernel GPIO for GPIO access 2012-09-27 14:33:58 -03:00
cxd2820r_t2.c [media] cxd2820r_t2: Fix a warning: stream_id is unsigned 2013-04-15 08:32:41 -03:00
cxd2820r_t.c [media] cxd2820r: use Kernel GPIO for GPIO access 2012-09-27 14:33:58 -03:00
cxd2820r.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
dib0070.c
dib0070.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
dib0090.c [media] dib0090: enhancement 2013-04-22 17:14:11 -03:00
dib0090.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
dib3000.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
dib3000mb_priv.h
dib3000mb.c
dib3000mc.c
dib3000mc.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
dib7000m.c
dib7000m.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
dib7000p.c [media] dib7000p: enhancement 2013-04-22 17:13:43 -03:00
dib7000p.h [media] dib7000p: enhancement 2013-04-22 17:13:43 -03:00
dib8000.c [media] dib8000: Fix sub-channel range 2013-04-25 15:13:49 -03:00
dib8000.h [media] dib8000: enhancement 2013-04-22 16:58:16 -03:00
dib9000.c
dib9000.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
dibx000_common.c
dibx000_common.h [media] dib8000: enhancement 2013-04-22 16:58:16 -03:00
drxd_firm.c
drxd_firm.h
drxd_hard.c [media] dvb-frontends: Replace memcpy with struct assignment 2012-12-27 19:03:15 -02:00
drxd_map_firm.h
drxd.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
drxk_hard.c [media] drxk_hard: Drop unused parameter 2013-03-23 10:44:31 -03:00
drxk_hard.h [media] drxk: Add pre/post BER and PER/UCB stats 2013-03-21 10:26:50 -03:00
drxk_map.h [media] drxk: Add pre/post BER and PER/UCB stats 2013-03-21 10:26:50 -03:00
drxk.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
ds3000.c [media] ts2020: call get_rf_strength from frontend 2013-01-06 10:49:38 -02:00
ds3000.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
dvb_dummy_fe.c [media] drivers/media/dvb-frontends/dvb_dummy_fe.c: Removes useless kfree() 2012-10-06 11:07:34 -03:00
dvb_dummy_fe.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
dvb-pll.c
dvb-pll.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
ec100.c [media] ec100: improve I2C routines 2012-09-23 20:11:26 -03:00
ec100.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
eds1547.h
hd29l2_priv.h [media] hd29l2: use Kernel dev_foo() logging 2012-09-23 20:11:55 -03:00
hd29l2.c [media] hd29l2: use Kernel dev_foo() logging 2012-09-23 20:11:55 -03:00
hd29l2.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
isl6405.c [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
isl6405.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
isl6421.c [media] cx88: kernel bz#9476: Fix tone setting for Nova-S+ model 92001 2013-04-08 06:56:47 -03:00
isl6421.h [media] cx88: kernel bz#9476: Fix tone setting for Nova-S+ model 92001 2013-04-08 06:56:47 -03:00
isl6423.c
isl6423.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
it913x-fe-priv.h
it913x-fe.c [media] it913x-fe: use ARRAY_SIZE() as a cleanup 2012-08-15 18:47:10 -03:00
it913x-fe.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
itd1000_priv.h
itd1000.c [media] drivers/media/dvb-frontends/itd1000.c: removes unnecessary semicolon 2012-10-06 08:22:17 -03:00
itd1000.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
ix2505v.c [media] ix2505v: use %*ph[N] to dump small buffers 2012-12-21 14:27:02 -02:00
ix2505v.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
Kconfig [media] ts2020: use customise option correctly 2013-03-21 14:11:12 -03:00
l64781.c [media] dvb-frontends: get rid of some "always false" warnings 2012-10-28 07:38:44 -02:00
l64781.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
lg2160.c [media] drivers/media/dvb-frontends/lg2160.c: Removes useless kfree() 2012-10-06 11:11:42 -03:00
lg2160.h [media] lg2160: dubious one-bit signed bitfield 2013-04-22 10:04:20 -03:00
lgdt330x_priv.h
lgdt330x.c
lgdt330x.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
lgdt3305.c
lgdt3305.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
lgs8gl5.c
lgs8gl5.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
lgs8gxx_priv.h
lgs8gxx.c
lgs8gxx.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
lnbh24.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
lnbp21.c [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
lnbp21.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
lnbp22.c [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
lnbp22.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
m88rs2000.c [media] ts2020: call get_rf_strength from frontend 2013-01-06 10:49:38 -02:00
m88rs2000.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
Makefile [media] ts2020: add ts2020 tuner driver 2012-12-27 19:26:58 -02:00
mb86a16_priv.h
mb86a16.c
mb86a16.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
mb86a20s.c [media] mb86a20s: better name temp vars at mb86a20s_layer_bitrate() 2013-04-08 07:12:19 -03:00
mb86a20s.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
mt312_priv.h
mt312.c [media] dvb-frontends: get rid of some "always false" warnings 2012-10-28 07:38:44 -02:00
mt312.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
mt352_priv.h
mt352.c
mt352.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
nxt200x.c
nxt200x.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
nxt6000_priv.h
nxt6000.c
nxt6000.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
or51132.c
or51132.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
or51211.c [media] or51211: apply pr_fmt and use pr_* macros instead of printk 2012-12-21 14:30:19 -02:00
or51211.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
rtl2830_priv.h [media] rtl2830: use Kernel dev_foo() logging 2012-09-23 20:12:11 -03:00
rtl2830.c [media] rtl2830.c: get rid of warning: no previous prototype 2012-10-27 17:56:42 -02:00
rtl2830.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
rtl2832_priv.h [media] rtl2832: add code to bind r820t on it 2013-04-16 21:25:52 -03:00
rtl2832.c [media] rtl2832: Fix IF calculus 2013-04-16 21:39:28 -03:00
rtl2832.h [media] rtl2832: add code to bind r820t on it 2013-04-16 21:25:52 -03:00
s5h1409.c
s5h1409.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
s5h1411.c
s5h1411.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
s5h1420_priv.h
s5h1420.c
s5h1420.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
s5h1432.c [media] drivers/media/dvb-frontends/s5h1432.c: Removes useless kfree() 2012-10-06 11:13:07 -03:00
s5h1432.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
s921.c [media] drivers/media/dvb-frontends/s921.c: Removes useless kfree() 2012-10-06 11:13:35 -03:00
s921.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
si21xx.c [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
si21xx.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
sp887x.c [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
sp887x.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
sp8870.c [media] drivers/media/dvb-frontends/sp8870.c: removes unnecessary semicolon 2012-10-06 08:22:22 -03:00
sp8870.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
stb0899_algo.c
stb0899_cfg.h
stb0899_drv.c [media] stb0899_drv: get rid of warning: no previous prototype 2012-10-27 17:57:12 -02:00
stb0899_drv.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
stb0899_priv.h
stb0899_reg.h
stb6000.c
stb6000.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
stb6100_cfg.h
stb6100_proc.h
stb6100.c [media] drivers/media/dvb-frontends/stb6100.c: Removes useless kfree() 2012-10-06 11:13:49 -03:00
stb6100.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
stv090x_priv.h
stv090x_reg.h
stv090x.c [media] stv090x: do not unlock unheld mutex in stv090x_sleep() 2013-03-14 11:40:32 -03:00
stv090x.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
stv0288.c
stv0288.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
stv0297.c
stv0297.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
stv0299.c [media] dvb-frontends: Replace memcpy with struct assignment 2012-12-27 19:03:15 -02:00
stv0299.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
stv0367_priv.h
stv0367_regs.h
stv0367.c [media] stv0367: get rid of warning: no previous prototype 2012-10-27 17:57:22 -02:00
stv0367.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
stv0900_core.c [media] stv0900: remove unnecessary null pointer check 2013-02-08 18:05:48 -02:00
stv0900_init.h
stv0900_priv.h
stv0900_reg.h [media] stv0900: Multistream support 2013-01-06 11:08:44 -02:00
stv0900_sw.c [media] stv0900: remove unnecessary null pointer check 2013-02-08 18:05:48 -02:00
stv0900.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
stv6110.c
stv6110.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
stv6110x_priv.h
stv6110x_reg.h
stv6110x.c
stv6110x.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tda665x.c [media] drivers/media/dvb-frontends/tda665x.c: Removes useless kfree() 2012-10-06 11:14:04 -03:00
tda665x.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tda826x.c
tda826x.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tda1002x.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tda1004x.c tda1004x: Lock I2C bus during firmware load 2012-10-01 07:17:01 -03:00
tda1004x.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tda8083.c [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
tda8083.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tda8261_cfg.h [media] budget-av: only use t_state if initialized 2012-12-21 18:25:11 -02:00
tda8261.c [media] tda8261: add printk levels 2012-09-18 12:46:27 -03:00
tda8261.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tda10021.c
tda10023.c
tda10048.c
tda10048.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
tda10071_priv.h [media] tda10071: declare MODULE_FIRMWARE 2012-09-23 20:07:45 -03:00
tda10071.c [media] tda10071: fix a warning introduced by changeset 41f55d5755 2012-12-21 14:43:41 -02:00
tda10071.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
tda10086.c
tda10086.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tda18271c2dd_maps.h
tda18271c2dd.c [media] tda18271c2dd.c: get rid of warning: no previous prototype 2012-10-27 17:57:54 -02:00
tda18271c2dd.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
tdhd1.h
ts2020.c [media] ts2020: call get_rf_strength from frontend 2013-01-06 10:49:38 -02:00
ts2020.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
tua6100.c
tua6100.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
ves1x93.c
ves1x93.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
ves1820.c
ves1820.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
z0194a.h
zl10036.c
zl10036.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
zl10039.c
zl10039.h [media] dvb-frontends: use IS_ENABLED 2013-03-23 09:03:59 -03:00
zl10353_priv.h
zl10353.c
zl10353.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00