[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1343361763-10307-4-git-send-email-bryan.wu@canonical.com>
Date: Fri, 27 Jul 2012 12:02:43 +0800
From: Bryan Wu <bryan.wu@...onical.com>
To: gregkh@...uxfoundation.org, ccross@...roid.com, hmh@....eng.br,
rpurdie@...ys.net, linux-kernel@...r.kernel.org,
linux-leds@...r.kernel.org
Subject: [PATCH 3/3] ledtrig-timer: convert to use device_create_file_uevent API
To send KOBJ_CHANGE uevent to userspace which is required by Android
Signed-off-by: Bryan Wu <bryan.wu@...onical.com>
---
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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists