aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPA4WDH2024-07-26 19:09:21 +0200
committerPA4WDH2024-07-26 19:09:21 +0200
commita4bd4af6221cd4825d8891f579e2ed571255b987 (patch)
treeaa140225db10082a6d5b73b42039d72ba79ba308
parentOnly increase/decrease if the diff>1000 (diff)
downloadcputemp2maxfreq-a4bd4af6221cd4825d8891f579e2ed571255b987.tar.gz
cputemp2maxfreq-a4bd4af6221cd4825d8891f579e2ed571255b987.tar.bz2
cputemp2maxfreq-a4bd4af6221cd4825d8891f579e2ed571255b987.zip
Fix more typos
-rw-r--r--cpufreq.c4
-rw-r--r--sysfs.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/cpufreq.c b/cpufreq.c
index 6497eff..df21b36 100644
--- a/cpufreq.c
+++ b/cpufreq.c
@@ -8,7 +8,7 @@
#define DIR_BUF_SIZE 1024
-// Validate if we found a file named cpu[0-9][0-9
+// Validate if we found a file named cpu[0-9][0-9]
int cpufreq_is_cpu(char *name)
{
if (strncmp(name,"cpu",3)!=0) return 0;
@@ -93,7 +93,7 @@ int cpufreq_set_str(char *parameter,char *value,long int checkdelay)
}
// This is just a wrapper around cpufreq_set_str with long int to string
-// convertion
+// conversion
int cpufreq_set_long_int(char *parameter,long int value,long int checkdelay)
{
char buf[255];
diff --git a/sysfs.c b/sysfs.c
index ff3bb67..dc2b822 100644
--- a/sysfs.c
+++ b/sysfs.c
@@ -65,7 +65,7 @@ int sysfs_write_str(char *sysfs_file,char *value,long int checkdelay)
close(sysfs_handle);
DEBUG2_SYSFS("Written %zd bytes\n",len);
-// What if instructed to
+// Wait if instructed to
if (checkdelay>0) usleep(checkdelay);
// Validate we actually set what we want to set