From: Milo Kim Date: Thu, 21 Nov 2013 06:13:34 +0000 (-0800) Subject: leds: lp5521/5523: Fix multiple engine usage bug X-Git-Tag: v3.14-rc1~66^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28c9266b38a00a07497daad0237f7fa154652ece;p=pandora-kernel.git leds: lp5521/5523: Fix multiple engine usage bug Whenever the engine is loaded by the user-application, the operation mode is reset first. But it has a problem in case of multiple engine used because previous engine settings are cleared. The driver should update not whole 8bits but each engine bit by masking. On the other hands, whole engines should be reset when the driver is unloaded and on initializing the LP5523 driver. So, new functions are used for this handling - lp5521/5523_stop_all_engines(). Cc: Pali Rohár Signed-off-by: Milo Kim Signed-off-by: Bryan Wu --- Reading git-diff-tree failed