Re: [PATCH] iio: humidity: hdc100x: fix IIO_TEMP channel reporting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 27/05/16 03:55, Matt Ranostay wrote:
> IIO_TEMP channel was being incorrectly reported back as Celsius when it
> should have been milliCelsius.
> 
> Signed-off-by: Matt Ranostay <mranostay@xxxxxxxxx>
Applied to fixes-togreg-post-rc1 and marked for stable.

Thanks,

Jonathan
> ---
>  drivers/iio/humidity/hdc100x.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/humidity/hdc100x.c b/drivers/iio/humidity/hdc100x.c
> index fa47676..7e73c56 100644
> --- a/drivers/iio/humidity/hdc100x.c
> +++ b/drivers/iio/humidity/hdc100x.c
> @@ -211,7 +211,7 @@ static int hdc100x_read_raw(struct iio_dev *indio_dev,
>  		return IIO_VAL_INT_PLUS_MICRO;
>  	case IIO_CHAN_INFO_SCALE:
>  		if (chan->type == IIO_TEMP) {
> -			*val = 165;
> +			*val = 165000;
>  			*val2 = 65536 >> 2;
>  			return IIO_VAL_FRACTIONAL;
>  		} else {
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux