projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f06c7f
)
leds: Don't treat the LED name as a format string
author
Sakari Ailus
<sakari.ailus@iki.fi>
Thu, 26 Mar 2015 23:42:06 +0000
(16:42 -0700)
committer
Bryan Wu
<cooloney@gmail.com>
Mon, 30 Mar 2015 21:26:32 +0000
(14:26 -0700)
The LED name was wrongly interpreted as format string. Stop doing that.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
drivers/leds/led-class.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/leds/led-class.c
b/drivers/leds/led-class.c
index 82e3844c185cf72d2af55a43c8737cf82e565dd4..728681debdbe437d086207f86422078bb560f774 100644
(file)
--- a/
drivers/leds/led-class.c
+++ b/
drivers/leds/led-class.c
@@
-252,7
+252,7
@@
int led_classdev_register(struct device *parent, struct led_classdev *led_cdev)
return ret;
led_cdev->dev = device_create_with_groups(leds_class, parent, 0,
-
led_cdev, led_cdev->groups
, name);
+
led_cdev, led_cdev->groups, "%s"
, name);
if (IS_ERR(led_cdev->dev))
return PTR_ERR(led_cdev->dev);