[media] redrat3: limit periods to hardware limits
authorSean Young <sean@mess.org>
Sat, 16 Feb 2013 20:25:43 +0000 (17:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 19 Mar 2013 18:14:00 +0000 (15:14 -0300)
commit801b69f2570e2556c6d5a060df85ce9bd0d38119
tree31c5debaeceb7a0a7c1ac027ab96a710708dc3a0
parent4159d01bea38ee82f6e49383b7e73e328c118755
[media] redrat3: limit periods to hardware limits

The redrat hardware cannot handle periods of larger than 32767us,
limit appropriately. Also fix memory leak in redrat3_get_timeout.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/redrat3.c