Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e68fe943 authored by Santosh Mardi's avatar Santosh Mardi Committed by Gerrit - the friendly Code Review server
Browse files

drivers: soc: qcom: rimps_memlat: update available frequencies format



Update available freuqency output format, previously entries in the
output is separated with new line, update this format to have space
after each entry instead of new line.

Also update the available frequency node from available_freq to
available_frequencies.

Change-Id: I2b2409168713477cbc801c8837a11c5c4613e996
Signed-off-by: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent 33569a19
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -331,7 +331,7 @@ static ssize_t show_cur_freq(struct kobject *kobj, char *buf)
	return count;
}

static ssize_t show_available_freq(struct kobject *kobj, char *buf)
static ssize_t show_available_frequencies(struct kobject *kobj, char *buf)
{
	struct memlat_mon *mon = to_memlat_mon(kobj);
	u32 i = 0;
@@ -339,7 +339,9 @@ static ssize_t show_available_freq(struct kobject *kobj, char *buf)

	if (mon->mon_type == L3_MEMLAT) {
		for (i = 0; i <= l3_pstates; i++)
			tmp += scnprintf(tmp, PAGE_SIZE, "%u\n", l3_freqs[i]);
			tmp += scnprintf(tmp, PAGE_SIZE, "%u ", l3_freqs[i]);

		tmp += scnprintf(tmp, PAGE_SIZE, "\n");
	}
	return (tmp - buf);
}
@@ -421,7 +423,7 @@ memlat_mon_attr_rw(l2wb_pct);
memlat_mon_attr_rw(l2wb_filter);
memlat_mon_attr_rw(log_level);
memlat_mon_attr_ro(cur_freq);
memlat_mon_attr_ro(available_freq);
memlat_mon_attr_ro(available_frequencies);

static struct attribute *mon_dev_attr[] = {
	&ratio_ceil.attr,
@@ -432,7 +434,7 @@ static struct attribute *mon_dev_attr[] = {
	&l2wb_pct.attr,
	&l2wb_filter.attr,
	&cur_freq.attr,
	&available_freq.attr,
	&available_frequencies.attr,
	NULL,
};