aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2009-09-20 13:44:47 -0400
committerRichard Purdie <rpurdie@linux.intel.com>2009-09-26 11:48:06 -0400
commit89dfc28ccbff6521a4df9dc3699a94bbde11a6ed (patch)
tree745fdfba71be343ba9c443cd65c1c757dbeaf53a /drivers/video/backlight
parentd822d5c273683dc4bacd413953b11ad31513e997 (diff)
backlight: extend event support to also support poll()
Extend the backlight event support to also allow the use of poll()/select() on actual_brightness. We already have the entire event hookup anyway, adding a single function call in one line to get functionality like that is a really good deal. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r--drivers/video/backlight/backlight.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c
index 6e1446ae7f52..6615ac7fa60a 100644
--- a/drivers/video/backlight/backlight.c
+++ b/drivers/video/backlight/backlight.c
@@ -91,6 +91,7 @@ static void backlight_generate_event(struct backlight_device *bd,
91 } 91 }
92 envp[1] = NULL; 92 envp[1] = NULL;
93 kobject_uevent_env(&bd->dev.kobj, KOBJ_CHANGE, envp); 93 kobject_uevent_env(&bd->dev.kobj, KOBJ_CHANGE, envp);
94 sysfs_notify(&bd->dev.kobj, NULL, "actual_brightness");
94} 95}
95 96
96static ssize_t backlight_show_power(struct device *dev, 97static ssize_t backlight_show_power(struct device *dev,