exynos_gpu: Don't allow userspace to control freqs

This commit is contained in:
Gabriel2392 2023-10-17 10:24:54 -03:00
parent 2de2633674
commit fdef7b54c3

View file

@ -577,7 +577,7 @@ static ssize_t gpu_min_clock_store(struct kobject *kobj,
return count;
}
static struct kobj_attribute attr_gpu_min_clock = __ATTR_RW(gpu_min_clock);
static struct kobj_attribute attr_gpu_min_clock = __ATTR_RO(gpu_min_clock);
static ssize_t gpu_max_clock_show(struct kobject *kobj,
struct kobj_attribute *attr, char *buf)
@ -610,7 +610,7 @@ static ssize_t gpu_max_clock_store(struct kobject *kobj,
return count;
}
static struct kobj_attribute attr_gpu_max_clock = __ATTR_RW(gpu_max_clock);
static struct kobj_attribute attr_gpu_max_clock = __ATTR_RO(gpu_max_clock);
static ssize_t gpu_siop_max_clock_show(struct kobject *kobj,
struct kobj_attribute *attr, char *buf)