leds: max8997: Simplify max8997_led_set_mode implementation
authorAxel Lin <axel.lin@gmail.com>
Tue, 24 Jul 2012 06:29:47 +0000 (14:29 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Tue, 24 Jul 2012 07:48:47 +0000 (15:48 +0800)
It is not necessary to call max8997_update_reg() twice just for updating
MAX8997_REG_LEN_CNTL register. With proper val and mask arguments to
max8997_update_reg() call, this can be done in one max8997_update_reg() call.
And then we can remove max8997_led_clear_mode() function.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>

No differences found