提交 89dfc28c 编写于 作者: H Henrique de Moraes Holschuh 提交者: Richard Purdie

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: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: NRichard Purdie <rpurdie@linux.intel.com>
上级 d822d5c2
...@@ -91,6 +91,7 @@ static void backlight_generate_event(struct backlight_device *bd, ...@@ -91,6 +91,7 @@ static void backlight_generate_event(struct backlight_device *bd,
} }
envp[1] = NULL; envp[1] = NULL;
kobject_uevent_env(&bd->dev.kobj, KOBJ_CHANGE, envp); 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, static ssize_t backlight_show_power(struct device *dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册