Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272208
b: refs/heads/master
c: fa0ea0e
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Linus Torvalds committed Nov 1, 2011
1 parent 4836d58 commit 28f972a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2b67c95b74f17c13c7b3a990540c9dd9b4a8480d
refs/heads/master: fa0ea0e16f748e36d65931227188ccf07f2b77c7
6 changes: 3 additions & 3 deletions trunk/drivers/leds/leds-lp5521.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ static int lp5521_set_engine_mode(struct lp5521_engine *engine, u8 mode)
mode = LP5521_CMD_DIRECT;

ret = lp5521_read(client, LP5521_REG_OP_MODE, &engine_state);
if (ret < 0)
return ret;

/* set mode only for this engine */
engine_state &= ~(engine->engine_mask);
mode &= engine->engine_mask;
engine_state |= mode;
ret |= lp5521_write(client, LP5521_REG_OP_MODE, engine_state);

return ret;
return lp5521_write(client, LP5521_REG_OP_MODE, engine_state);
}

static int lp5521_load_program(struct lp5521_engine *eng, const u8 *pattern)
Expand Down

0 comments on commit 28f972a

Please sign in to comment.