summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-dw.c
diff options
context:
space:
mode:
authorFrank Praznik <frank.praznik@oh.rr.com>2015-05-05 20:47:32 -0400
committerJiri Kosina <jkosina@suse.cz>2015-05-07 10:41:36 +0200
commit221399b36535752351d4631606b427daca3dc35c (patch)
tree3c6e25a9554897877ac016446468fec919ca3f44 /drivers/spi/spi-dw.c
parent8f069fdf5bbc6b300f9c88801d0d858d2a4d46e6 (diff)
downloadtalos-obmc-linux-221399b36535752351d4631606b427daca3dc35c.tar.gz
talos-obmc-linux-221399b36535752351d4631606b427daca3dc35c.zip
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 <frank.praznik@oh.rr.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/spi/spi-dw.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud