aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/lcd.h
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-02-08 17:53:55 -0500
committerRichard Purdie <rpurdie@rpsys.net>2007-02-20 03:38:45 -0500
commit249040dc7fd391186f420fe23a9b59d357103cac (patch)
treefa62127c1a66e752ff5f32aa53c3d986022e0851 /include/linux/lcd.h
parent28ee086d5b36aab2931f6740e409bb0fb6c65e5f (diff)
backlight: Convert semaphore -> mutex
Convert internal semaphore to a mutex Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'include/linux/lcd.h')
-rw-r--r--include/linux/lcd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/lcd.h b/include/linux/lcd.h
index bfbf6552eb51..46970af2ca89 100644
--- a/include/linux/lcd.h
+++ b/include/linux/lcd.h
@@ -14,7 +14,7 @@
14 14
15/* Notes on locking: 15/* Notes on locking:
16 * 16 *
17 * lcd_device->sem is an internal backlight lock protecting the props 17 * lcd_device->props_lock is an internal backlight lock protecting the props
18 * field and no code outside the core should need to touch it. 18 * field and no code outside the core should need to touch it.
19 * 19 *
20 * Access to set_power() is serialised by the update_lock mutex since 20 * Access to set_power() is serialised by the update_lock mutex since
@@ -52,7 +52,7 @@ struct lcd_device {
52 /* This protects the 'props' field. If 'props' is NULL, the driver that 52 /* This protects the 'props' field. If 'props' is NULL, the driver that
53 registered this device has been unloaded, and if class_get_devdata() 53 registered this device has been unloaded, and if class_get_devdata()
54 points to something in the body of that driver, it is also invalid. */ 54 points to something in the body of that driver, it is also invalid. */
55 struct semaphore sem; 55 struct mutex props_lock;
56 /* If this is NULL, the backing module is unloaded */ 56 /* If this is NULL, the backing module is unloaded */
57 struct lcd_properties *props; 57 struct lcd_properties *props;
58 /* Serialise access to set_power method */ 58 /* Serialise access to set_power method */