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