summaryrefslogtreecommitdiff
blob: 01bf10bba48b6a1a261ee70d66ac762daee704da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
--- 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;