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

Commit c5f936a2 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cpuidle: lpm-levels: Update functions to static"

parents e05c9ee0 3f8c900a
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -102,8 +102,8 @@ static ssize_t lpm_latency_show(struct kobject *kobj,
	return ret;
}

ssize_t lpm_enable_show(struct kobject *kobj, struct kobj_attribute *attr,
				char *buf)
static ssize_t lpm_enable_show(struct kobject *kobj,
			       struct kobj_attribute *attr, char *buf)
{
	int ret = 0;
	struct kernel_param kp;
@@ -125,7 +125,8 @@ ssize_t lpm_enable_show(struct kobject *kobj, struct kobj_attribute *attr,
	return ret;
}

ssize_t lpm_enable_store(struct kobject *kobj, struct kobj_attribute *attr,
static ssize_t lpm_enable_store(struct kobject *kobj,
				struct kobj_attribute *attr,
				const char *buf, size_t len)
{
	int ret = 0;
@@ -611,7 +612,7 @@ void free_cluster_node(struct lpm_cluster *cluster)
 * level of a cluster is consistent with reference to its
 * child nodes.
 */
struct lpm_cluster *parse_cluster(struct device_node *node,
static struct lpm_cluster *parse_cluster(struct device_node *node,
				  struct lpm_cluster *parent)
{
	struct lpm_cluster *c;
+4 −4
Original line number Diff line number Diff line
@@ -21,8 +21,8 @@

#define MAX_STR_LEN 256
#define MAX_TIME_LEN 20
char *lpm_stats_reset = "reset";
char *lpm_stats_suspend = "suspend";
static char *lpm_stats_reset = "reset";
static char *lpm_stats_suspend = "suspend";

struct lpm_sleep_time {
	struct kobj_attribute ts_attr;
@@ -46,7 +46,7 @@ static struct level_stats suspend_time_stats;

static DEFINE_PER_CPU_SHARED_ALIGNED(struct lpm_stats, cpu_stats);

bool str_is_reset(const char __user *in, size_t count)
static bool str_is_reset(const char __user *in, size_t count)
{
	loff_t ppos = 0;
	char buffer[64] = { 0 };
@@ -254,7 +254,7 @@ static ssize_t lpm_stats_file_write(struct file *file,
	return count;
}

int lifo_stats_file_show(struct seq_file *m, void *v)
static int lifo_stats_file_show(struct seq_file *m, void *v)
{
	struct lpm_stats *stats = (struct lpm_stats *)m->private;
	struct list_head *centry = NULL;