[PATCH 00/11] iio: adc: replace deprecated iio_push_to_buffers_with_timestamp()

Atharv Dubey posted 11 patches 3 weeks ago
Only 0 patches received!
drivers/iio/adc/ad7766.c         |  4 ++--
drivers/iio/adc/ad7887.c         |  4 ++--
drivers/iio/adc/ad7944.c         | 10 ++++++----
drivers/iio/adc/ad799x.c         |  5 +++--
drivers/iio/adc/ad_sigma_delta.c |  6 +++---
drivers/iio/adc/at91_adc.c       |  2 +-
drivers/iio/adc/cc10001_adc.c    |  3 ++-
drivers/iio/adc/hx711.c          |  5 +++--
drivers/iio/adc/mt6360-adc.c     |  2 +-
drivers/iio/adc/ti-adc161s626.c  |  5 +++--
drivers/iio/adc/ti-ads7950.c     |  2 +-
11 files changed, 27 insertions(+), 21 deletions(-)
[PATCH 00/11] iio: adc: replace deprecated iio_push_to_buffers_with_timestamp()
Posted by Atharv Dubey 3 weeks ago
Hello ,

The helper iio_push_to_buffers_with_timestamp() is deprecated in the IIO
subsystem. The recommended replacement is
iio_push_to_buffers_with_ts().

This patch series updates multiple ADC drivers to use the newer helper
API. No functional changes are intended; the patches only replace the
deprecated calls and adjust arguments where required.

The goal is to remove usage of the deprecated helper and keep the
drivers aligned with the current IIO buffer interface. 

Regards, 
Atharv  

---
Atharv Dubey (11):
  iio: ad_sigma_delta: replace deprecated
    iio_push_to_buffers_with_timestamp()
  iio: ad7766: replace deprecated iio_push_to_buffers_with_timestamp()
  iio: adc : ads7950 : replace deprecated
    iio_push_to_buffers_with_timestamp()
  iio: adc : cc10001 : replace deprecated
    iio_push_to_buffers_with_timestamp()
  iio: adc : ad7887 : replace deprecated
    iio_push_to_buffers_with_timestamp()
  iio: adc : hx711 : replace deprecated
    iio_push_to_buffers_with_timestamp()
  iio: adc : at91 : replace deprecated
    iio_push_to_buffers_with_timestamp()
  iio: adc : ad799x : replace deprecated
    iio_push_to_buffers_with_timestamp()
  iio: adc : adc161s626 : replace deprecated
    iio_push_to_buffers_with_timestamp()
  iio: adc : mt6360 : replace deprecated
    iio_push_to_buffers_with_timestamp()
  iio: adc : ad7944 : replace deprecated
    iio_push_to_buffers_with_timestamp()

 drivers/iio/adc/ad7766.c         |  4 ++--
 drivers/iio/adc/ad7887.c         |  4 ++--
 drivers/iio/adc/ad7944.c         | 10 ++++++----
 drivers/iio/adc/ad799x.c         |  5 +++--
 drivers/iio/adc/ad_sigma_delta.c |  6 +++---
 drivers/iio/adc/at91_adc.c       |  2 +-
 drivers/iio/adc/cc10001_adc.c    |  3 ++-
 drivers/iio/adc/hx711.c          |  5 +++--
 drivers/iio/adc/mt6360-adc.c     |  2 +-
 drivers/iio/adc/ti-adc161s626.c  |  5 +++--
 drivers/iio/adc/ti-ads7950.c     |  2 +-
 11 files changed, 27 insertions(+), 21 deletions(-)

-- 
2.43.0
Re: [PATCH 00/11] iio: adc: replace deprecated iio_push_to_buffers_with_timestamp()
Posted by Andy Shevchenko 3 weeks ago
On Mon, Mar 16, 2026 at 10:57:26PM +0530, Atharv Dubey wrote:
> Hello ,
> 
> The helper iio_push_to_buffers_with_timestamp() is deprecated in the IIO
> subsystem. The recommended replacement is
> iio_push_to_buffers_with_ts().
> 
> This patch series updates multiple ADC drivers to use the newer helper
> API. No functional changes are intended; the patches only replace the
> deprecated calls and adjust arguments where required.
> 
> The goal is to remove usage of the deprecated helper and keep the
> drivers aligned with the current IIO buffer interface. 

You need to do this very carefully.
Besides that your email thread is broken:
- you have sent 2 time cover letter
- the patches 10 and 11 are detached from email thread.

On top of that there is wrong indentation in many places.
I recommend you to choose something less tricky to begin
with.

-- 
With Best Regards,
Andy Shevchenko
Re: [PATCH 00/11] iio: adc: replace deprecated iio_push_to_buffers_with_timestamp()
Posted by Atharv Dubey 2 weeks, 4 days ago
Hi Andy,

On 3/17/26 01:26, Andy Shevchenko wrote:
> On Mon, Mar 16, 2026 at 10:57:26PM +0530, Atharv Dubey wrote:
>> Hello ,
>>
>> The helper iio_push_to_buffers_with_timestamp() is deprecated in the IIO
>> subsystem. The recommended replacement is
>> iio_push_to_buffers_with_ts().
>>
>> This patch series updates multiple ADC drivers to use the newer helper
>> API. No functional changes are intended; the patches only replace the
>> deprecated calls and adjust arguments where required.
>>
>> The goal is to remove usage of the deprecated helper and keep the
>> drivers aligned with the current IIO buffer interface.
> You need to do this very carefully.
> Besides that your email thread is broken:
> - you have sent 2 time cover letter
> - the patches 10 and 11 are detached from email thread.
>
> On top of that there is wrong indentation in many places.
> I recommend you to choose something less tricky to begin
> with.
>
>   

I'll recitfy these mistakes and perhaps send a smaller patch for the 
same. If you have some more simpler things in mind , please let me know. 
I'll be happy to help out.

Regards,
Atharv