Richard Purdie 28ee086d5b backlight: Fix external uses of backlight internal semaphore
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>
2007-02-20 08:38:45 +00:00
..
2007-02-12 09:48:31 -08:00
2007-02-17 21:30:15 -05:00
2007-02-11 10:51:24 -08:00
2007-02-16 15:19:17 -08:00
2007-02-09 17:39:36 -05:00
2007-02-11 11:18:07 -08:00
2007-02-07 15:44:36 -08:00
2007-02-13 22:09:01 +01:00
2007-02-11 11:18:07 -08:00
2007-02-09 17:39:36 -05:00
2007-02-12 09:48:30 -08:00
2007-02-16 14:37:06 +00:00
2007-02-07 10:37:14 -08:00
2007-02-11 10:51:24 -08:00
2007-02-16 13:32:41 -05:00
2007-02-17 19:17:37 +01:00
2007-02-12 09:48:31 -08:00
2007-02-12 09:48:31 -08:00
2007-02-07 15:50:08 -08:00
2007-02-08 13:51:54 -08:00
2007-02-09 08:06:14 -08:00
2007-02-11 10:51:28 -08:00
2007-02-11 10:51:28 -08:00
2007-02-17 19:07:33 +01:00
2007-02-12 09:48:41 -08:00
2007-02-11 10:51:18 -08:00
2007-02-07 14:03:19 +11:00
2007-02-07 10:37:14 -08:00
2007-02-16 08:13:57 -08:00
2007-02-16 08:13:56 -08:00
2007-02-11 10:51:25 -08:00
2007-02-11 11:18:05 -08:00