Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccdc4507 authored by Sakari Ailus's avatar Sakari Ailus Committed by Bryan Wu
Browse files

leds: Don't treat the LED name as a format string



The LED name was wrongly interpreted as format string. Stop doing that.

Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
Signed-off-by: default avatarRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
parent 6f06c7f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -252,7 +252,7 @@ int led_classdev_register(struct device *parent, struct led_classdev *led_cdev)
		return ret;
		return ret;


	led_cdev->dev = device_create_with_groups(leds_class, parent, 0,
	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))
	if (IS_ERR(led_cdev->dev))
		return PTR_ERR(led_cdev->dev);
		return PTR_ERR(led_cdev->dev);