Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp502985imm; Wed, 13 Jun 2018 04:07:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIzdTuuZ0ROzeIlHSBZOR8LrBz7A+BCm5IHs+2rh6GqmFthkkbL8+LLexQWOTtdXxRjoTLz X-Received: by 2002:a63:755d:: with SMTP id f29-v6mr3696452pgn.278.1528888030623; Wed, 13 Jun 2018 04:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528888030; cv=none; d=google.com; s=arc-20160816; b=JDGZzO4p96ymnn7/MnhVfPCxC7zl8N2HRuU6xDwLtxTi5FvRj/BKzzjxAajPn2kmis lL0JiwkOZHjePt9lzM39yMg/95xSsRuB6LkQPkmVQ3hCVaPr/Zli1h2j6dorCeNRRPcI I/QwG+/X+9sCqe7QvsKyDlFVzNnm8Z7KeAfalhPq+OKB5DFqmlUYJWt8PovhCtkbX3TS acxOTmIsmXhwg646hvqwc7mS3PFRRawm2u/dSsTpto9BZS4hvYWiYDnBGeocNBlfCWPT 6Q+m6gIQNDfXl0+acspXpcovcBLNHY7BhIhrjfZzR9zrn94IDLd9g4aM9TGa9uZEqBkg oA0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Mctu3tvLzVeasiSNbT3iivkQ7r4RunVh9ZCDPYUFuW4=; b=A43yIOQzgvWgpcaWQ6m4Pc78VxVOqrO1MlKUrAVWAV3D/V7/PG65+A5rP7iKt9+iNf vu1eZqlztQVEOnObKoDUiQTnA4bPCcSWikSBEkX/CZs3S0qUnQpmGK8wCfyU4gl7/Y4p rUSJpgmT0KfqirgQG0toqxamDCiC5reCyd2A2p60EAq5M0+Dxh+NYlGqgjjN/8n7epe2 vgKSOPzUIOne3ERa4Cv7avZWBZVl7Y204LkwyFqWeueDMhxZAXLRfBS0KS48wfgGEWnr /DWCGqqTDnuZBqNgP1p+Vgb5MoTUmQagPBQXixnCTyUJcv31PBkcI+lzLLuS4GaT7VX+ 3ZNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="V/j8qINn"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2-v6si2011264pgc.438.2018.06.13.04.06.56; Wed, 13 Jun 2018 04:07:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="V/j8qINn"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935269AbeFMLGj (ORCPT + 99 others); Wed, 13 Jun 2018 07:06:39 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:37442 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935121AbeFMLGh (ORCPT ); Wed, 13 Jun 2018 07:06:37 -0400 Received: by mail-it0-f67.google.com with SMTP id l6-v6so3261002iti.2 for ; Wed, 13 Jun 2018 04:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Mctu3tvLzVeasiSNbT3iivkQ7r4RunVh9ZCDPYUFuW4=; b=V/j8qINnk8lmBUsccj6hGp79uCmuGLL5n4Vy5HiPfp8xQrNfpj7QzO5So0HWuJAqxX 5/E59WH7zNo7Ws7YLSllxqPggGQffxKLSpzjUNt2Jl3Xq6vN0HeNVAi1sOj+MAanq3VT ec4sCyXkhutVlPLCbDCldOBwezyH9xkUQ/qGE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Mctu3tvLzVeasiSNbT3iivkQ7r4RunVh9ZCDPYUFuW4=; b=RQ58GPFrkiPYYoXTu+cWePuteb/VXr9yYFfAeuVpXrOadgrRGExqqSUAm/X0dmaHSn VKJk+FV0fSc+z/J9ay2wBfjwb8aOgjV67Pr69LR5O+bFzOX8dMBggos41mo+rQkVdLiN YCnO6sCOYCZn5zaAf5/n3azxHzFSd09NKNQ3/s60vZ8OvdX8CaDiBBoNvplNt/TVCgyX w+JHCq4ATkf0WkB9wZWN6kHjFYRtFpii4BfpQsJGXWKceOEp90+HApvN6158EW9jXk9W LG1834dLCSXQ6QO00dsgiEv/iBvQMnuP08YpAbB9OvmqIXYsGZ5AwGoh/IMKYdg3qRWT rXug== X-Gm-Message-State: APt69E1jACwMF2WQWtqWFot4t8rOWpXs8GGnzDxpPsia8uwGgBj00b5N hrdooR5ZPeRPn3YZbeSQPjsg/1L6UQE+gmPLRSxWsqGc X-Received: by 2002:a02:5206:: with SMTP id d6-v6mr136505jab.112.1528887996615; Wed, 13 Jun 2018 04:06:36 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:78c9:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 04:06:35 -0700 (PDT) In-Reply-To: <20180607181306.9766-1-ctatlor97@gmail.com> References: <20180407135934.26122-1-ctatlor97@gmail.com> <20180607181306.9766-1-ctatlor97@gmail.com> From: Linus Walleij Date: Wed, 13 Jun 2018 13:06:35 +0200 Message-ID: Subject: Re: [PATCH v5 1/4] fixp-arith: add a linear interpolation function To: Craig Tatlor Cc: linux-arm-msm@vger.kernel.org, Sebastian Reichel , Rob Herring , Mark Rutland , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Andrew Morton , Randy Dunlap , Linux PM list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 7, 2018 at 8:12 PM, Craig Tatlor wrote: > Adds a function to interpolate against two points, > this is carried arount as a helper function by tons of drivers. > > Signed-off-by: Craig Tatlor The linear formula seems to fit the most natural form of linear interpolation. I bet some John Carmack algorithm type people will soon start to optimize this... :D Reviewed-by: Linus Walleij Yours, Linus Walleij