diff options
author | Antti Palosaari <crope@iki.fi> | 2013-08-07 00:02:40 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-08-20 16:07:07 -0300 |
commit | 35111f5bc94e790a2ac236dcaf3009c14c5e9f5d (patch) | |
tree | 93ce148123fd369596c332d15dbd60f53374394f | |
parent | c5a431d02cdcafaf12edff770c294c5fbadcdf54 (diff) | |
download | op-kernel-dev-35111f5bc94e790a2ac236dcaf3009c14c5e9f5d.zip op-kernel-dev-35111f5bc94e790a2ac236dcaf3009c14c5e9f5d.tar.gz |
[media] msi3101: fix overflow in freq setting
Higher frequencies were not possible to set correctly as that value
overflows.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/staging/media/msi3101/sdr-msi3101.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/media/msi3101/sdr-msi3101.c b/drivers/staging/media/msi3101/sdr-msi3101.c index 93168db..56f9757 100644 --- a/drivers/staging/media/msi3101/sdr-msi3101.c +++ b/drivers/staging/media/msi3101/sdr-msi3101.c @@ -1507,11 +1507,11 @@ static int vidioc_s_frequency(struct file *file, void *priv, const struct v4l2_frequency *f) { struct msi3101_state *s = video_drvdata(file); - dev_dbg(&s->udev->dev, "%s: frequency=%u Hz (%d)\n", - __func__, f->frequency * 625U / 10U, f->frequency); + dev_dbg(&s->udev->dev, "%s: frequency=%lu Hz (%u)\n", + __func__, f->frequency * 625UL / 10UL, f->frequency); return v4l2_ctrl_s_ctrl_int64(s->ctrl_tuner_rf, - f->frequency * 625U / 10U); + f->frequency * 625UL / 10UL); } const struct v4l2_ioctl_ops msi3101_ioctl_ops = { |