diff options
author | Erik Schumacher <erik.schumacher@iris-sensing.com> | 2025-02-24 12:19:04 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2025-03-02 19:42:01 +0300 |
commit | e278d5e8aef4c0a1d9a9fa8b8910d713a89aa800 (patch) | |
tree | e313f9e81f2e0f031e5d0fed75ee555bbf13622c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 1c7932d5ae0f5c22fa52ac811b4c427bbca5aff5 (diff) | |
download | linux-e278d5e8aef4c0a1d9a9fa8b8910d713a89aa800.tar.xz |
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: Erik Schumacher <erik.schumacher@iris-sensing.com>
Fixes: 4f3a659581cab ("hwmon: AD7314 driver (ported from IIO)")
Link: https://lore.kernel.org/r/24a50c2981a318580aca8f50d23be7987b69ea00.camel@iris-sensing.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions