- 486, 498, 502, 482, 478, 506, 510, 474
+ 486, 498, 502, 482, 478, 506, 510, 474,
probe_hwmon_path(addr, path);
dir = g_dir_open(path->str, 0, &err);
probe_hwmon_path(addr, path);
dir = g_dir_open(path->str, 0, &err);
sr_err("Error opening %s: %s", path->str, err->message);
g_string_free(path, TRUE);
return -1;
sr_err("Error opening %s: %s", path->str, err->message);
g_string_free(path, TRUE);
return -1;
-static void append_channel(struct sr_dev_inst *sdi,
- struct sr_channel_group *cg,
+static void append_channel(struct sr_dev_inst *sdi, struct sr_channel_group *cg,
append_channel(sdi, cg, prb_num, TEMP_IN);
append_channel(sdi, cg, prb_num, TEMP_OUT);
} else {
append_channel(sdi, cg, prb_num, TEMP_IN);
append_channel(sdi, cg, prb_num, TEMP_OUT);
} else {
- snprintf(path, sizeof(path),
- "/sys/class/hwmon/hwmon%d/%s",
+ snprintf(path, sizeof(path), "/sys/class/hwmon/hwmon%d/%s",
chp->probe->hwmon_num, file);
fd = open(path, O_RDONLY);
if (fd < 0) {
chp->probe->hwmon_num, file);
fd = open(path, O_RDONLY);
if (fd < 0) {