mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
gryphon-led-module: reduce verbosity
This commit is contained in:
parent
aecd02af65
commit
3af26d6f84
1 changed files with 3 additions and 6 deletions
|
|
@ -82,7 +82,6 @@ static ssize_t set_led_color(struct device *dev,
|
|||
}
|
||||
|
||||
// Update the LED array here
|
||||
printk(KERN_DEBUG "Set LED color\n");
|
||||
ret = sk9822_set_color_str(sk9822, buf);
|
||||
if (ret != 0) {
|
||||
printk(KERN_ERR "Failed to set led color\n");
|
||||
|
|
@ -119,8 +118,6 @@ static int canyon_led_probe(struct platform_device *pdev)
|
|||
int ret;
|
||||
struct sk9822_leds *leds;
|
||||
|
||||
printk(KERN_NOTICE "Begin probing...\n");
|
||||
|
||||
leds = devm_kzalloc(&pdev->dev, sizeof(*leds), GFP_KERNEL);
|
||||
if (!leds) {
|
||||
return -ENOMEM;
|
||||
|
|
@ -143,8 +140,6 @@ static int canyon_led_probe(struct platform_device *pdev)
|
|||
|
||||
platform_set_drvdata(pdev, leds);
|
||||
|
||||
printk(KERN_INFO "Allocated memory\n");
|
||||
|
||||
#if LINUX_VERSION_CODE <= KERNEL_VERSION(3, 16, 0)
|
||||
leds->clock_gpio = gpiod_get_index(&pdev->dev, "led", 0);
|
||||
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0)
|
||||
|
|
@ -192,14 +187,16 @@ static int canyon_led_probe(struct platform_device *pdev)
|
|||
return ret;
|
||||
}
|
||||
|
||||
#if 0
|
||||
printk(KERN_INFO "Flash LEDs to verify they work\n");
|
||||
sk9822_set_color_str(leds, "00FF00");
|
||||
sk9822_update(leds);
|
||||
msleep(200);
|
||||
#endif
|
||||
sk9822_set_color_str(leds, "000000");
|
||||
sk9822_update(leds);
|
||||
|
||||
printk(KERN_NOTICE "We made it, carry on...\n");
|
||||
printk(KERN_INFO "canyon led successfully probed\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue