RE: [PATCH 7/7] leds-lm3530: enhanced arithmetic operation

From: Kim, Milo
Date: Fri Jan 20 2012 - 12:30:56 EST


>> The reason why dividing by two is only 7-bits of brightness value in the LM3530 register.
>>
>> Bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0
>> ------------------------------------------------------
>> N/A | LED Brightness Data (Bits[6:0])
>> ------------------------------------------------------
>>
>> So maximum value is limited to 127.

> So the max_brightness property of your led should be set to 127.

That's good point. Thanks a lot !
Additional patch needs for this.

Best Regards,
Milo -

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/