]> git.karo-electronics.de Git - karo-tx-linux.git/commit
leds-pca9633: Add mutex to the ledout register
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Wed, 14 Aug 2013 21:23:49 +0000 (14:23 -0700)
committerBryan Wu <cooloney@gmail.com>
Tue, 27 Aug 2013 00:22:14 +0000 (17:22 -0700)
commita7d0e9884fd7594d4de5066add5135ac6bb55bd4
tree8090e4f54ecbde5fa2b5aa6afeb07f2e25b4cbca
parenta5cd98b796b6891edc324415034a7f89531c754f
leds-pca9633: Add mutex to the ledout register

To update an LED a register has to be read, updated and writen. If
another LED whas been updated at the same time, this could lead into
wrong updates.

This patch adds a common mutex to all the leds of the same chip to
protect the ledout register.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-pca9633.c