Skip to content

Instantly share code, notes, and snippets.

@sorgelig
sorgelig / gpu_freq_table_fix
Created August 21, 2013 13:49
Fix empty entry of GPU max frequency setting in STweaks
diff --git a/drivers/gpu/pvr/services4/system/exynos5410/perseus_dvfs.c b/drivers/gpu/pvr/services4/system/exynos5410/perseus_dvfs.c
index dd7ea7d..b2e664a 100644
--- a/drivers/gpu/pvr/services4/system/exynos5410/perseus_dvfs.c
+++ b/drivers/gpu/pvr/services4/system/exynos5410/perseus_dvfs.c
@@ -141,7 +141,7 @@ static int sec_gpu_lock_control_proc(int bmax, long value, size_t count)
static ssize_t get_dvfs_table(struct device *d, struct device_attribute *a, char *buf)
{
- return sprintf(buf, "%s\n", sgx_dvfs_table);
+ return sprintf(buf, "%s", sgx_dvfs_table);
@sorgelig
sorgelig / toggle_fix
Created August 17, 2013 23:56
Fix for negative toggle (two -1 have been missed)
diff --git a/drivers/input/keyboard/cypress/cypress-touchkey.c b/drivers/input/keyboard/cypress/cypress-touchkey.c
index 30fb1fb..51c3a05 100644
--- a/drivers/input/keyboard/cypress/cypress-touchkey.c
+++ b/drivers/input/keyboard/cypress/cypress-touchkey.c
@@ -861,14 +861,14 @@ static inline int64_t get_time_inms(void) {
}
extern void mdnie_toggle_negative(void);
-static int key_trg_cnt = 4;
-static int key_trg_ms = 300;