drivers/iio/adc/ltc2309.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-)
This series adds missing read delay support for the LTC2305 and optimizes
the chip_info structure for better memory safety and efficiency.
The LTC2305 requires a 1.6μs delay between I2C channel selection and
data read operations - a timing requirement identified by the hardware
designer that wasn't captured in the initial LTC2305 support
(commit 8625d418d24b ("iio: adc: ltc2309: add support for ltc2305")).
Additionally, the chip_info structure is enhanced with __counted_by_ptr()
annotation for improved bounds checking and reorganized to minimize
padding.
Changes in v2:
- Split into two logical patches as suggested by Andy Shevchenko:
* Patch 1: Read delay functionality
* Patch 2: Structure optimization
- No code changes from v1, only reorganization
Link to v1:
https://lore.kernel.org/linux-iio/20260327034159.15545-1-carlosjr.jones@analog.com/
Carlos Jones Jr (2):
iio: adc: ltc2309: add read delay for ltc2305
iio: adc: ltc2309: Optimize chip_info structure layout
drivers/iio/adc/ltc2309.c | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
--
2.43.0
On Tue, Mar 31, 2026 at 09:24:55AM +0800, Carlos Jones Jr wrote:
> This series adds missing read delay support for the LTC2305 and optimizes
> the chip_info structure for better memory safety and efficiency.
>
> The LTC2305 requires a 1.6μs delay between I2C channel selection and
> data read operations - a timing requirement identified by the hardware
> designer that wasn't captured in the initial LTC2305 support
> (commit 8625d418d24b ("iio: adc: ltc2309: add support for ltc2305")).
>
> Additionally, the chip_info structure is enhanced with __counted_by_ptr()
> annotation for improved bounds checking and reorganized to minimize
> padding.
>
> Changes in v2:
> - Split into two logical patches as suggested by Andy Shevchenko:
> * Patch 1: Read delay functionality
> * Patch 2: Structure optimization
> - No code changes from v1, only reorganization
>
> Link to v1:
> https://lore.kernel.org/linux-iio/20260327034159.15545-1-carlosjr.jones@analog.com/
>
> Carlos Jones Jr (2):
> iio: adc: ltc2309: add read delay for ltc2305
> iio: adc: ltc2309: Optimize chip_info structure layout
>
> drivers/iio/adc/ltc2309.c | 16 +++++++++++++---
> 1 file changed, 13 insertions(+), 3 deletions(-)
>
> --
> 2.43.0
>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
On Tue, Mar 31, 2026 at 4:25 AM Carlos Jones Jr
<carlosjr.jones@analog.com> wrote:
>
> This series adds missing read delay support for the LTC2305 and optimizes
> the chip_info structure for better memory safety and efficiency.
>
> The LTC2305 requires a 1.6μs delay between I2C channel selection and
> data read operations - a timing requirement identified by the hardware
> designer that wasn't captured in the initial LTC2305 support
> (commit 8625d418d24b ("iio: adc: ltc2309: add support for ltc2305")).
>
> Additionally, the chip_info structure is enhanced with __counted_by_ptr()
> annotation for improved bounds checking and reorganized to minimize
> padding.
Now LGTM,
Reviewed-by: Andy Shevchenko <andy@kernel.org>
--
With Best Regards,
Andy Shevchenko
© 2016 - 2026 Red Hat, Inc.