https://github.com/torvalds/linux
Revision 28ee086d5b36aab2931f6740e409bb0fb6c65e5f authored by Richard Purdie on 08 February 2007, 22:25:09 UTC, committed by Richard Purdie on 20 February 2007, 08:38:45 UTC
backlight_device->sem has a very specific use as documented in the
header file. The external users of this are using it for a different
reason, to serialise access to the update_status() method.

backlight users were supposed to implement their own internal
serialisation of update_status() if needed but everyone is doing
things differently and incorrectly. Therefore add a global mutex to
take care of serialisation for everyone, once and for all.

Locking for get_brightness remains optional since most users don't
need it.

Also update the lcd class in a similar way.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
1 parent a8db3c1
History
Tip revision: 28ee086d5b36aab2931f6740e409bb0fb6c65e5f authored by Richard Purdie on 08 February 2007, 22:25:09 UTC
backlight: Fix external uses of backlight internal semaphore
Tip revision: 28ee086
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 572 bytes
.mailmap -rw-r--r-- 3.5 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 88.9 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 81.8 KB
Makefile -rw-r--r-- 49.1 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top