To send KOBJ_CHANGE uevent to userspace which is required by Android
Signed-off-by: Bryan Wu <[email protected]>
---
drivers/leds/ledtrig-timer.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/leds/ledtrig-timer.c b/drivers/leds/ledtrig-timer.c
index 9010f7a..d8b6296 100644
--- a/drivers/leds/ledtrig-timer.c
+++ b/drivers/leds/ledtrig-timer.c
@@ -78,10 +78,12 @@ static void timer_trig_activate(struct led_classdev
*led_cdev)
led_cdev->trigger_data = NULL;
- rc = device_create_file(led_cdev->dev, &dev_attr_delay_on);
+ rc = device_create_file_uevent(led_cdev->dev, &dev_attr_delay_on,
+ "TRIGGER=timer", KOBJ_CHANGE);
if (rc)
return;
- rc = device_create_file(led_cdev->dev, &dev_attr_delay_off);
+ rc = device_create_file_uevent(led_cdev->dev, &dev_attr_delay_off,
+ "TRIGGER=timer", KOBJ_CHANGE);
if (rc)
goto err_out_delayon;
--
1.7.11.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/