[media] lg2160: fix off-by-one error in lg216x_write_regs
authorMichael Krufky <mkrufky@linuxtv.org>
Mon, 21 May 2012 15:28:14 +0000 (12:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 11 Jun 2012 18:59:16 +0000 (15:59 -0300)
commitbffaecc75cc6cbbf1e46571256d7b137df61bff6
treeee1562308a4433db5f35fe3bbbfe03a599f11be9
parent87736df2401f51e67e55b8d1e6aac98a7990002b
[media] lg2160: fix off-by-one error in lg216x_write_regs

Fix an off-by-one error in lg216x_write_regs, causing the last element
of the lg216x init block to be ignored.  Spotted by Dan Carpenter.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/lg2160.c