Commit 7a569fd8 authored by Dennis Rassmann's avatar Dennis Rassmann

sweep2wake: the button-backlight is item 0 in the shooter led_config

parent d007bd22
......@@ -594,9 +594,9 @@ static int pm8058_led_probe(struct platform_device *pdev)
}
#ifdef CONFIG_TOUCHSCREEN_ATMEL_SWEEP2WAKE
if (!strcmp(pdata->led_config[2].name, "button-backlight")) {
sweep2wake_setleddev(&ldata[2].ldev);
printk(KERN_INFO "[sweep2wake]: set led device %s, bank %d\n", pdata->led_config[2].name, ldata[2].bank);
if (!strcmp(pdata->led_config[0].name, "button-backlight")) {
sweep2wake_setleddev(&ldata[0].ldev);
printk(KERN_INFO "[sweep2wake]: set led device %s, bank %d\n", pdata->led_config[0].name, ldata[0].bank);
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment