Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752584Ab2HaKGM (ORCPT ); Fri, 31 Aug 2012 06:06:12 -0400 Received: from mailrelay1.diasemi.com ([82.210.246.133]:44325 "EHLO mailrelay1.diasemi.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751864Ab2HaKGK (ORCPT ); Fri, 31 Aug 2012 06:06:10 -0400 From: Krystian Garbaciak To: Mark Brown CC: , , , , , , Samuel Ortiz , Liam Girdwood , Mark Brown , Alessandro Zummo , Jean Delvare , Dmitry Torokhov , Ashish Jangam , Andrew Jones , Donggeun Kim , Philippe =?iso-8859-1?Q?R=E9tornaz?= , "Wim Van Sebroeck" , Bryan Wu , Richard Purdie , Anthony Olech References: <201208241450@sw-eng-lt-dc-vm2> <201208241455@sw-eng-lt-dc-vm2> <20120825151020.GB6520@opensource.wolfsonmicro.com> <201208291550@sw-eng-lt-dc-vm2> <20120830174738.GH4356@opensource.wolfsonmicro.com> In-Reply-To: <20120830174738.GH4356@opensource.wolfsonmicro.com> Message-ID: <201208311100@sw-eng-lt-dc-vm2> Subject: Re: [RFC PATCH 2/8] regulator: Add Dialog DA906x voltage regulators support. Date: Fri, 31 Aug 2012 11:00:00 +0100 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 847 Lines: 20 > On Wed, Aug 29, 2012 at 03:50:00PM +0100, Krystian Garbaciak wrote: > > > Because, for some regulators, this is required: val += fvol->offset, > > I was only able to reduce it to the following form. > > What on earth makes you say this? The above is obviously linear. > > Besides, you're missing several points here. One is that you should be > using the framework features, another is that you should be implementing > _sel. Sorry, I've missed an obvious thing here. Instead of adding selector offset at runtime, I can substract apropriate voltage from .min_uV. Thanks for pointing this out. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/