summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/lg2160.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/lg2160.c')
-rw-r--r--drivers/media/dvb/frontends/lg2160.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/lg2160.c b/drivers/media/dvb/frontends/lg2160.c
index a3ab1a5b6597..cc11260e99df 100644
--- a/drivers/media/dvb/frontends/lg2160.c
+++ b/drivers/media/dvb/frontends/lg2160.c
@@ -126,7 +126,7 @@ static int lg216x_write_regs(struct lg216x_state *state,
lg_reg("writing %d registers...\n", len);
- for (i = 0; i < len - 1; i++) {
+ for (i = 0; i < len; i++) {
ret = lg216x_write_reg(state, regs[i].reg, regs[i].val);
if (lg_fail(ret))
return ret;
OpenPOWER on IntegriCloud