2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Drop VRM reporting and selection support from libsensors. Since kernel

2.6.9, the right VID conversion formula is selected automatically
depending on the CPU model, so the user shouldn't have to care.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4543 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2007-07-03 13:22:28 +00:00
parent e10dec5e86
commit 7cc03f5029
11 changed files with 17 additions and 138 deletions

View File

@@ -101,20 +101,17 @@ int sensors_get_label_and_valid(sensors_chip_name name, int feature, char **labe
return err;
}
void print_vid_info_real(const sensors_chip_name *name, int f_vid, int f_vrm, int label_size)
void print_vid_info(const sensors_chip_name *name, int f_vid, int label_size)
{
char *label;
int valid;
double vid, vrm;
double vid;
if (!sensors_get_label_and_valid(*name,f_vid,&label,&valid)
&& !sensors_get_feature(*name,f_vid,&vid) ) {
if (valid) {
print_label(label, label_size);
if(!sensors_get_feature(*name,f_vrm,&vrm))
printf("%+6.3f V (VRM Version %.1f)\n",vid,vrm);
else
printf("%+6.3f V\n",vid);
printf("%+6.3f V\n", vid);
}
}
free(label);