Re: [PATCH V1]iio: adc: spmi-vadc: Changes to support different scaling

2016-11-02 Thread kbuild test robot
Hi Rama, [auto build test WARNING on iio/togreg] [also build test WARNING on v4.9-rc3 next-20161028] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Rama-Krishna-Phani-A/iio-adc-spmi-vadc-Changes

Re: [PATCH V1]iio: adc: spmi-vadc: Changes to support different scaling

2016-10-26 Thread Phani A, Rama Krishna
Hi Sricharan, On 26-Oct-16 3:47 PM, Sricharan wrote: Hi Ramakrishna, [snip..] + u32 i = 0; + + if (!pts) + return -EINVAL; + + /* Check if table is descending or ascending */ + if (tablesize > 1) { + if (pts[0].x < pts[1].x) +

RE: [PATCH V1]iio: adc: spmi-vadc: Changes to support different scaling

2016-10-26 Thread Sricharan
Hi Ramakrishna, [snip..] >>> + u32 i = 0; >>> + >>> + if (!pts) >>> + return -EINVAL; >>> + >>> + /* Check if table is descending or ascending */ >>> + if (tablesize > 1) { >>> + if (pts[0].x < pts[1].x) >>> + descending = 0; >>> + } >>> + >>> + w

Re: [PATCH V1]iio: adc: spmi-vadc: Changes to support different scaling

2016-10-26 Thread Phani A, Rama Krishna
Hi Sricharan, Will incorporate the suggested changes in the next patch set. On 25-Oct-16 6:39 PM, Sricharan wrote: Hi Ramakrishna, Add changes to support different scale functions to convert adc code to physical units. Signed-off-by: Rama Krishna Phani A --- drivers/iio/adc/qcom-spmi-vadc.c

RE: [PATCH V1]iio: adc: spmi-vadc: Changes to support different scaling

2016-10-25 Thread Sricharan
Hi Ramakrishna, >Add changes to support different scale functions to convert adc code to >physical units. > >Signed-off-by: Rama Krishna Phani A >--- > drivers/iio/adc/qcom-spmi-vadc.c | 319 ++- > 1 file changed, 249 insertions(+), 70 deletions(-) > >diff --git

[PATCH V1]iio: adc: spmi-vadc: Changes to support different scaling

2016-10-24 Thread Rama Krishna Phani A
Add changes to support different scale functions to convert adc code to physical units. Signed-off-by: Rama Krishna Phani A --- drivers/iio/adc/qcom-spmi-vadc.c | 319 ++- 1 file changed, 249 insertions(+), 70 deletions(-) diff --git a/drivers/iio/adc/qcom-sp