From: Axel Lin Date: Tue, 24 Jul 2012 06:29:47 +0000 (+0800) Subject: leds: max8997: Simplify max8997_led_set_mode implementation X-Git-Tag: v3.6-rc1~76^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb18618b8018bffad6e62f1bc40e4e0c7ee2fa19;p=pandora-kernel.git 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 Signed-off-by: Bryan Wu --- Reading git-diff-tree failed