From: Frank Praznik Date: Wed, 6 May 2015 00:47:32 +0000 (-0400) Subject: HID: sony: Simplify LED initialization and eliminate redundant copies when updating... X-Git-Tag: omap-for-v4.2/fixes-rc1^2~157^2^8~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=221399b36535752351d4631606b427daca3dc35c;p=pandora-kernel.git HID: sony: Simplify LED initialization and eliminate redundant copies when updating LED states Directly set the initial LED states in the device state struct instead of copying them from a temporary array. This allows for the removal of a redundant "x = x" copy loop in sony_set_leds() that was taking place any time an LED was updated. It also allows for the simplifying of the parameters in functions dealing with LED initialization and updates since only a pointer to the sony_sc struct is needed now. Signed-off-by: Frank Praznik Acked-by: Pavel Machek Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed