lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <20171212123444.949202084@linuxfoundation.org> Date: Tue, 12 Dec 2017 13:43:22 +0100 From: Greg Kroah-Hartman <gregkh@...uxfoundation.org> To: linux-kernel@...r.kernel.org Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>, stable@...r.kernel.org, Peter Meerwald-Stadler <pmeerw@...erw.net>, Matt Ranostay <matt.ranostay@...sulko.com>, Jonathan Cameron <Jonathan.Cameron@...wei.com> Subject: [PATCH 4.14 022/164] iio: health: max30102: Temperature should be in milli Celsius 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Peter Meerwald-Stadler <pmeerw@...erw.net> commit ad44a9f804c1591ba2a2ec0ac8d916a515d2790c upstream. As per ABI temperature should be in milli Celsius after scaling, not Celsius Note on stable cc. This driver is breaking the standard IIO ABI. (JC) Signed-off-by: Peter Meerwald-Stadler <pmeerw@...erw.net> Acked-by: Matt Ranostay <matt.ranostay@...sulko.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@...wei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org> --- drivers/iio/health/max30102.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iio/health/max30102.c +++ b/drivers/iio/health/max30102.c @@ -371,7 +371,7 @@ static int max30102_read_raw(struct iio_ mutex_unlock(&indio_dev->mlock); break; case IIO_CHAN_INFO_SCALE: - *val = 1; /* 0.0625 */ + *val = 1000; /* 62.5 */ *val2 = 16; ret = IIO_VAL_FRACTIONAL; break;
Powered by blists - more mailing lists