Re: [PATCH 5/6] iio: humidity: hdc100x: Report the available lists via read_avail()

From: Jonathan Cameron

Date: Sat Nov 07 2026 - 20:14:43 EST


On Mon, 2 Nov 2026 16:46:59 +0900
Arka Mondal <arka@xxxxxxxxxxxxxx> wrote:

> The temperature and humidity channels have IIO_CHAN_INFO_INT_TIME in
> info_mask_separate, so userspace sees in_temp_integration_time and
> in_humidityrelative_integration_time. Two custom attributes list
> the values they accept, named temp_integration_time_available and
> humidityrelative_integration_time_available. Neither carries the in_
> prefix of the attribute it describes, so both sit at the device level,
> and userspace that opens either prefixed name finds no such file. A
> third attribute, out_current_heater_raw_available, already has the right
> name and keeps it.
>
> Report all three through read_avail() and delete the attributes and the
> group that held them.
>
> The two time lists hold what hdc100x_set_it_time() accepts. Its loop
> ignores a zero request, so the padding entry in the temperature row of
> hdc100x_int_time cannot be selected, which is why the temperature list
> has two entries and the humidity list three.
>
> No value changes. The heater list still prints 0 1, and the core prints
> the times to the six decimals of IIO_VAL_INT_PLUS_MICRO: temperature
> reads 0.003650 0.006350 where it read 0.00365 0.00635, humidity 0.002500
> 0.003850 0.006500 where it read 0.0025 0.00385 0.0065.
>
> Fixes: 4839367d99e3 ("iio: humidity: add HDC100x support")
> Signed-off-by: Arka Mondal <arka@xxxxxxxxxxxxxx>
Applied this one.

thanks,

Jonathan