diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-07-24 08:29:47 +0200 |
---|---|---|
committer | Bryan Wu <bryan.wu@canonical.com> | 2012-07-24 09:48:47 +0200 |
commit | eb18618b8018bffad6e62f1bc40e4e0c7ee2fa19 (patch) | |
tree | 724aafc2a5a3a8766a4e468714c2479b1fed10fb /Documentation/leds | |
parent | leds/leds-s3c24xx: use devm_gpio_request (diff) | |
download | linux-eb18618b8018bffad6e62f1bc40e4e0c7ee2fa19.tar.xz linux-eb18618b8018bffad6e62f1bc40e4e0c7ee2fa19.zip |
leds: max8997: Simplify max8997_led_set_mode implementation
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>
Diffstat (limited to 'Documentation/leds')
0 files changed, 0 insertions, 0 deletions