Re: [PATCH v5 1/4] fixp-arith: add a linear interpolation function

2018-06-13 Thread Craig Tatlor
On Wed, Jun 13, 2018 at 01:12:45PM +0200, Linus Walleij wrote: > On Wed, Jun 13, 2018 at 1:06 PM, Linus Walleij > wrote: > > 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

Re: [PATCH v5 1/4] fixp-arith: add a linear interpolation function

2018-06-13 Thread Craig Tatlor
On Wed, Jun 13, 2018 at 01:12:45PM +0200, Linus Walleij wrote: > On Wed, Jun 13, 2018 at 1:06 PM, Linus Walleij > wrote: > > 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

Re: [PATCH v5 1/4] fixp-arith: add a linear interpolation function

2018-06-13 Thread Linus Walleij
On Wed, Jun 13, 2018 at 1:06 PM, Linus Walleij wrote: > 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

Re: [PATCH v5 1/4] fixp-arith: add a linear interpolation function

2018-06-13 Thread Linus Walleij
On Wed, Jun 13, 2018 at 1:06 PM, Linus Walleij wrote: > 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

Re: [PATCH v5 1/4] fixp-arith: add a linear interpolation function

2018-06-13 Thread Linus Walleij
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

Re: [PATCH v5 1/4] fixp-arith: add a linear interpolation function

2018-06-13 Thread Linus Walleij
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

[PATCH v5 1/4] fixp-arith: add a linear interpolation function

2018-06-07 Thread Craig Tatlor
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 --- include/linux/fixp-arith.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/fixp-arith.h

[PATCH v5 1/4] fixp-arith: add a linear interpolation function

2018-06-07 Thread Craig Tatlor
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 --- include/linux/fixp-arith.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/fixp-arith.h