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)
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>

No differences found