diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-20 18:52:48 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-20 18:53:33 +0200 |
commit | 13b019bbd170d788b1461c2e00b4578a07541dc5 (patch) | |
tree | 0e8d766261af2739cf935989c816261d1447c5ff /drivers/media/tuners | |
parent | [media] e4000: implement V4L2 subdevice tuner and core ops (diff) | |
download | linux-13b019bbd170d788b1461c2e00b4578a07541dc5.tar.xz linux-13b019bbd170d788b1461c2e00b4578a07541dc5.zip |
[media] e4000: Fix rangehigh value
As reported by smatch:
drivers/media/tuners/e4000.c:287:32: warning: constant 2208000000 is so big it is long long
drivers/media/tuners/e4000.c:287:32: warning: decimal constant 2208000000 is between LONG_MAX and ULONG_MAX. For C99 that means long long, C90 compilers are very likely to produce unsigned long (and a warning) here
drivers/media/tuners/e4000.c:287:3: warning: this decimal constant is unsigned only in ISO C90
.rangehigh = 2208000000,
^
Cc: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r-- | drivers/media/tuners/e4000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/tuners/e4000.c b/drivers/media/tuners/e4000.c index 3b49a4550bd3..fdf07ce4177a 100644 --- a/drivers/media/tuners/e4000.c +++ b/drivers/media/tuners/e4000.c @@ -284,7 +284,7 @@ static const struct v4l2_frequency_band bands[] = { .index = 1, .capability = V4L2_TUNER_CAP_1HZ | V4L2_TUNER_CAP_FREQ_BANDS, .rangelow = 1249000000, - .rangehigh = 2208000000, + .rangehigh = 2208000000L, }, }; |