leds bug

From: Alain2210 <alain2210_at_free.fr>
Date: Thu, 13 Sep 2007 21:09:27 +0200

Hello,

with kernel 2.6.21-hh16, the yellow led does not blink when charging. dmesg says
:
hamcop_set_led: illegal LED number 5, must be < 5

It seems due to a difference between
drivers/leds/leds-hamcop.c
and
drivers/mfd/hamcop_base.c
in the first :
extern int hamcop_set_led(struct device *hamcop_dev, unsigned long rate,
                          int led_num, unsigned int duty_time,
                          unsigned int cycle_time);
while in the second :
hamcop_set_led (struct device *dev, int led_num, int duty_time, int cycle_time)

there is "unsigned long rate" in the first and not in the second.

Sincerely,

Alain
Received on Thu Sep 13 2007 - 15:09:30 EDT

This archive was generated by hypermail 2.2.0 : Thu Sep 13 2007 - 15:09:47 EDT