From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756905AbcIXMAa (ORCPT ); Sat, 24 Sep 2016 08:00:30 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:42509 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751900AbcIXMA0 (ORCPT ); Sat, 24 Sep 2016 08:00:26 -0400 Date: Sat, 24 Sep 2016 14:00:23 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: Florian Vaussard , devicetree@vger.kernel.org, Richard Purdie , Jacek Anaszewski , Rob Herring , Mark Rutland , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Florian Vaussard Subject: Re: [PATCH v3 2/2] leds: Add driver for NCP5623 3-channel I2C LED driver Message-ID: <20160924120022.GB8696@amd> References: <1474025672-5040-1-git-send-email-florian.vaussard@heig-vd.ch> <1474025672-5040-3-git-send-email-florian.vaussard@heig-vd.ch> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p4qYPpj5QlsIQJ0K" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --p4qYPpj5QlsIQJ0K Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Instead I propose the following: >=20 > n_iled_max =3D > 31 - (priv->led_iref * 2400 / priv->leds_max_current + > !!(priv->led_iref * 2400 % priv->leds_max_current)) >=20 div_round_up? Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --p4qYPpj5QlsIQJ0K Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlfmatYACgkQMOfwapXb+vLxHwCcDh15EfJsI96L2WBQiU686nsF 2eQAn1rQsSoHuPeE+Dy/2GT1ThpRm5p0 =wsxc -----END PGP SIGNATURE----- --p4qYPpj5QlsIQJ0K--