hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/hwmon/tmp513.c
....@@ -434,7 +434,7 @@
434434
435435 switch (type) {
436436 case hwmon_temp:
437
- if (data->id == tmp512 && channel == 4)
437
+ if (data->id == tmp512 && channel == 3)
438438 return 0;
439439 switch (attr) {
440440 case hwmon_temp_input:
....@@ -758,7 +758,7 @@
758758 static struct i2c_driver tmp51x_driver = {
759759 .driver = {
760760 .name = "tmp51x",
761
- .of_match_table = of_match_ptr(tmp51x_of_match),
761
+ .of_match_table = tmp51x_of_match,
762762 },
763763 .probe_new = tmp51x_probe,
764764 .id_table = tmp51x_id,