lkml.org 
[lkml]   [2016]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3 2/2] leds: Add driver for NCP5623 3-channel I2C LED driver
From
Date
On 09/24/2016 02:00 PM, Pavel Machek wrote:
> Hi!
>
>> Instead I propose the following:
>>
>> n_iled_max =
>> 31 - (priv->led_iref * 2400 / priv->leds_max_current +
>> !!(priv->led_iref * 2400 % priv->leds_max_current))
>>
>
> div_round_up?

Exactly. Thanks.

--
Best regards,
Jacek Anaszewski

\
 
 \ /
  Last update: 2016-09-24 20:46    [W:0.095 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site