sensors/lm_sensors-r5914-fix-TMP421-detection.patch

19 lines
617 B
Diff
Raw Normal View History

We probe addresses 0x1c-0x1f for other chips now, so we might as well
look for TMP421 devices there.
---
prog/detect/sensors-detect | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- lm_sensors-3.2.0.orig/prog/detect/sensors-detect
+++ lm_sensors-3.2.0/prog/detect/sensors-detect
@@ -950,7 +950,7 @@ use vars qw(@i2c_adapter_names);
}, {
name => "Texas Instruments TMP421",
driver => "tmp421",
- i2c_addrs => [0x2a, 0x4c..0x4f], # 0x1c-0x1f not probed.
+ i2c_addrs => [0x1c..0x1f, 0x2a, 0x4c..0x4f],
i2c_detect => sub { tmp42x_detect(@_, 0); },
}, {
name => "Texas Instruments TMP422",