[media] av7110: don't allow negative volumes
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 Nov 2015 22:22:49 +0000 (20:22 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 17 Nov 2015 16:36:39 +0000 (14:36 -0200)
commit75d63a40a5c01cf6ba9572cb124488a0e3baa6c1
tree61eaafdbd72de480f8fd5c3aeb0e37ba0592060b
parent4623e5967448444a4ea1e77beb58898c4af48693
[media] av7110: don't allow negative volumes

The issue here is that we there is a static checker warning because we
have a user controlled volume setting and we cap the upper bound but we
allow negative numbers.  Negative volumes don't make sense, so let's
make these variables unsigned.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/ttpci/av7110_av.c
drivers/media/pci/ttpci/av7110_av.h