]> Git Repo - linux.git/commit - drivers/leds/leds-pca963x.c
leds-pca9633: Add mutex to the ledout register
authorRicardo Ribalda Delgado <[email protected]>
Wed, 14 Aug 2013 21:23:49 +0000 (14:23 -0700)
committerBryan Wu <[email protected]>
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 <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
drivers/leds/leds-pca9633.c
This page took 0.052836 seconds and 4 git commands to generate.