From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754085AbcCMIfK (ORCPT ); Sun, 13 Mar 2016 04:35:10 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:56642 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754038AbcCMIew (ORCPT ); Sun, 13 Mar 2016 04:34:52 -0400 Date: Sat, 12 Mar 2016 13:09:25 +0700 From: Mark Brown To: Laxman Dewangan Cc: robh+dt@kernel.org, pawel.moll@arm.com, lgirdwood@gmail.com, lee.jones@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <20160312060925.GW3898@sirena.org.uk> References: <1457434405-30372-1-git-send-email-ldewangan@nvidia.com> <1457434405-30372-5-git-send-email-ldewangan@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cxfMsoqvp1jUizWj" Content-Disposition: inline In-Reply-To: <1457434405-30372-5-git-send-email-ldewangan@nvidia.com> X-Cookie: Do not flush. User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH 4/5] regulator: pwm: Add support for voltage linear equal steps X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cxfMsoqvp1jUizWj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 08, 2016 at 04:23:24PM +0530, Laxman Dewangan wrote: > There is a use cases where entire voltage ranges from minimum > to maximum is divided into n equal steps and just providing the > steps count, the voltage table with duty cycles is linearly > calculated. I can't see any reason why this would ever be preferable to just using the flat linear range (you certainly haven't articulated one, you're just stating it). This seems like you are bodging around a limited consumer driver, you should fix the consumer to cope with regulators with lots of voltages - PWM regulators aren't the only ones with high resolution steps. --cxfMsoqvp1jUizWj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJW47KUAAoJECTWi3JdVIfQsCQH/0eYPqlP5grSKoZoBaHQkEia w4CjC+OrXaWu4rCLoYXdmlWpRA87fIDvV3CFYJGAIiD52xxP4QdmV6ntlFywQWGP Itet42mZYIvnt6kOgq7cHwF9GusUluQ7Dvkwe9vWaf5Tk/fRfdlBsKXxDNOsc1lU xEPGAuskcEwPXqx5p0jps/DNLA++Am717BbuqqsvdNvg0yloO4n4GphwMf2yrj/C uLnoS5M5+bHsKpiBf/dmSxmxSA151jbM4yhoD/k4GPptJ4jvdpaZH9Ik/Fr6kHFt RfdWcWdaNdP4dQNZah+wKdqK9YmqRI/ZIpqGQ4TySIzcdzs5NZipDiYp6nYh5nw= =w5LL -----END PGP SIGNATURE----- --cxfMsoqvp1jUizWj--