From: Henrique de Moraes Holschuh Date: Sun, 20 Sep 2009 17:44:47 +0000 (-0300) Subject: backlight: extend event support to also support poll() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=89dfc28ccbff6521a4df9dc3699a94bbde11a6ed;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Richard Purdie --- 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, } envp[1] = NULL; kobject_uevent_env(&bd->dev.kobj, KOBJ_CHANGE, envp); + sysfs_notify(&bd->dev.kobj, NULL, "actual_brightness"); } static ssize_t backlight_show_power(struct device *dev,