From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96D2DC43331 for ; Tue, 24 Mar 2020 14:16:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 96E8C20789 for ; Tue, 24 Mar 2020 14:16:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OsuZkJiC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 96E8C20789 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hG22WATwAMXre8CowX06tFf0PS0W8/4/qmjzIFfNWbY=; b=OsuZkJiCfcaE41TIC8+uZPr2r Et74qQYpsUijl1wBOfBBuH6iv4G03rsm028IdVO+ffEHzjd38KM52j7QTdqY2Mx6QdQheKjMyF7xH ZilSk/4bRVBw0yxWAxGUgPFjwYNs69Uh9DkeLX8LCaPJ3Ov7kKPkdKdN9Z6Ny/gp33yOHuqAa7wFy sUsTkeq8xbMcC49SreWlkRKO9PPqIUwPvl70yJc9msGRWQwKAAgWhoQWuthRzYDug+O3vGnAWLgx/ pAvd6Bt5KrIBKkAPoOVBgBk5fSZQ7zOxWRnGRQAwh2Ed1Z4g8yUIv8CWChm99icNZsIKf7r/3+K/W goBCwkRBw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGkM9-0004Ri-K2; Tue, 24 Mar 2020 14:16:37 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGkM6-0004RB-Rr; Tue, 24 Mar 2020 14:16:36 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DA5A51FB; Tue, 24 Mar 2020 07:16:33 -0700 (PDT) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 630563F52E; Tue, 24 Mar 2020 07:16:33 -0700 (PDT) Date: Tue, 24 Mar 2020 14:16:31 +0000 From: Mark Brown To: Matti Vaittinen Subject: Re: [PATCH v6 03/10] lib: add linear ranges helpers Message-ID: <20200324141631.GE7039@sirena.org.uk> References: MIME-Version: 1.0 In-Reply-To: X-Cookie: I feel ... JUGULAR ... User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200324_071634_992134_2B7073FF X-CRM114-Status: GOOD ( 12.71 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Milo Kim , Andrei Stefanescu , "Rafael J. Wysocki" , Tony Lindgren , Linus Walleij , Brendan Higgins , Liam Girdwood , Masahiro Yamada , devicetree@vger.kernel.org, linux-omap@vger.kernel.org, mikko.mutanen@fi.rohmeurope.com, Vincenzo Frascino , Dan Williams , linux-samsung-soc@vger.kernel.org, Andy Shevchenko , Herbert Xu , Bartlomiej Zolnierkiewicz , Chen-Yu Tsai , Krzysztof Kozlowski , Ard Biesheuvel , Bartosz Golaszewski , Andy Shevchenko , Andy Gross , markus.laine@fi.rohmeurope.com, linux-arm-msm@vger.kernel.org, Borislav Petkov , Petr Mladek , Mikhail Zaslonko , Charles Keepax , Arnd Bergmann , mazziesaccount@gmail.com, Gary Hook , Richard Fitzgerald , Rob Herring , linux-mediatek@lists.infradead.org, David Gow , Shuah Khan , Matthias Brugger , Thomas Gleixner , Bjorn Andersson , linux-arm-kernel@lists.infradead.org, Support Opensource , Sangbeom Kim , Greg Kroah-Hartman , linux-pm@vger.kernel.org, Randy Dunlap , Sebastian Reichel , linux-kernel@vger.kernel.org, Tal Gilboa , Changbin Du , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Masami Hiramatsu , patches@opensource.cirrus.com, Andrew Morton , Vladimir Oltean , "David S. Miller" Content-Type: multipart/mixed; boundary="===============0605430446613083547==" Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org --===============0605430446613083547== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OZkY3AIuv2LYvjdk" Content-Disposition: inline --OZkY3AIuv2LYvjdk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 24, 2020 at 10:29:09AM +0200, Matti Vaittinen wrote: > Many devices have control registers which control some measurable > property. Often a register contains control field so that change in > this field causes linear change in the controlled property. It is not > a rare case that user wants to give 'meaningful' control values and > driver needs to convert them to register field values. Even more > often user wants to 'see' the currently set value - again in > meaningful units - and driver needs to convert the values it reads > from register to these meaningful units. Examples of this include: Reviwed-by: Mark Brown --OZkY3AIuv2LYvjdk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl56Fj8ACgkQJNaLcl1U h9Agjwf+Io/zV2QMzoU2EKs1sg15aBVtSYsYl6smy2i9XXr5Fi61Nt1MMI7OBocI fFjs642G2c66K25uiK4Ol9pTut6RFb4ToZgcZiGWCSLsfgiswPIIgIFMEVU6rNFG raSBgvSAkW7kPK0hnhQG+oOe5vlgivjoG8JqG0pUex682DmujBQXL7eZFkRl8Bak L/4AZ2d5e7cd0tMjwThOBkSD9s6zAakkEAEWXeb5buX0Ne3Pp6DXjvY0mBeBEtbF 0faz2t2B5ixMQE2c9XkBIGhPTXeuXFmTjOP4CtnYnUcd4csREk37xwrliR2lZapt BUUQWoOV2y5hyQlTeqWg9cKven0cWw== =9zhx -----END PGP SIGNATURE----- --OZkY3AIuv2LYvjdk-- --===============0605430446613083547== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek --===============0605430446613083547==--