Re: [PATCH v2 3/5] iio: adc: mcp320x: use conv_time instead of device_index switch

From: Andy Shevchenko
Date: Wed Aug 31 2022 - 08:44:16 EST


On Wed, Aug 31, 2022 at 1:05 PM Vincent Whitchurch
<vincent.whitchurch@xxxxxxxx> wrote:
>
> In mcp320x_adc_conversion(), the presence of the chip_info's conv_time
> is used as a condition for using the conversion message. Use that same
> condition when initializing the conversion message and the other
> handling for variants which need it, instead of the different condition
> (checking of the device_index) which is used currently.

...

> + if (chip_info->conv_time) {

It would be nice to have conv_time_us renamed before this change.

--
With Best Regards,
Andy Shevchenko