Skip to content
Commit e278d5e8 authored by Erik Schumacher's avatar Erik Schumacher Committed by Guenter Roeck
Browse files

hwmon: (ad7314) Validate leading zero bits and return error



Leading zero bits are sent on the bus before the temperature value is
transmitted. If any of these bits are high, the connection might be
unstable or there could be no AD7314 / ADT730x (or compatible) at all.
Return -EIO in that case.

Signed-off-by: default avatarErik Schumacher <erik.schumacher@iris-sensing.com>
Fixes: 4f3a6595 ("hwmon: AD7314 driver (ported from IIO)")
Link: https://lore.kernel.org/r/24a50c2981a318580aca8f50d23be7987b69ea00.camel@iris-sensing.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 1c7932d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment