You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-power/phc-intel/files/phc-intel-0.3.2-rev15-trail...

52 lines
1.4 KiB

--- phc-intel-pack-rev15.1/inc/3.5/linux-phc-0.3.2.patch
+++ phc-intel-pack-rev15.1/inc/3.5/linux-phc-0.3.2.patch
@@ -55,7 +55,7 @@
kfree(data->freq_table);
kfree(data);
}
-@@ -716,8 +728,470 @@
+@@ -716,8 +728,475 @@
return 0;
}
@@ -134,6 +134,7 @@
+ vid = extract_vid_from_control(acpi_data->states[freq_table[i].index].control);
+ count += sprintf(&buf[count], "%u ", vid);
+ }
++ if (count) count--;
+ count += sprintf(&buf[count], "\n");
+
+ return count;
@@ -163,6 +164,7 @@
+ vid = extract_vid_from_control(data->original_controls[freq_table[i].index]);
+ count += sprintf(&buf[count], "%u ", vid);
+ }
++ if (count) count--;
+ count += sprintf(&buf[count], "\n");
+
+ return count;
@@ -189,6 +191,7 @@
+ fid = extract_fid_from_control(acpi_data->states[freq_table[i].index].control);
+ count += sprintf(&buf[count], "%u ", fid);
+ }
++ if (count) count--;
+ count += sprintf(&buf[count], "\n");
+
+ return count;
@@ -217,6 +220,7 @@
+ vid = extract_vid_from_control(acpi_data->states[freq_table[i].index].control);
+ count += sprintf(&buf[count], "%u:%u ", fid, vid);
+ }
++ if (count) count--;
+ count += sprintf(&buf[count], "\n");
+
+ return count;
@@ -248,6 +252,7 @@
+ vid = extract_vid_from_control(data->original_controls[freq_table[i].index]);
+ count += sprintf(&buf[count], "%u:%u ", fid, vid);
+ }
++ if (count) count--;
+ count += sprintf(&buf[count], "\n");
+
+ return count;