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

Commit bd9f0fbe authored by Osvaldo Banuelos's avatar Osvaldo Banuelos
Browse files

regulator: cpr3-regulator: fix max_aggregated_params debugfs directory



Currently, the max_aggregated_params directory exposed for each
thread reports the aggregated ceiling, floor, open-loop, and last
known closed-loop voltages corresponding to the CPR controller that
the thread is associated with. This is undesirable, since the
max_aggregated_params directory should provide aggregated data for
the multiple regulators associated with the thread.

Change-Id: I5f8577c12badb85ba34b616912d930800197e05e
Signed-off-by: default avatarOsvaldo Banuelos <osvaldob@codeaurora.org>
parent 8b477bbf
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2350,7 +2350,7 @@ static void cpr3_regulator_debugfs_thread_add(struct cpr3_thread *thread)
	}

	temp = debugfs_create_int("floor_volt", S_IRUGO, aggr_dir,
				  &ctrl->aggr_corner.floor_volt);
				  &thread->aggr_corner.floor_volt);
	if (IS_ERR_OR_NULL(temp)) {
		cpr3_err(ctrl, "thread %u aggr floor_volt debugfs file creation failed\n",
			thread->thread_id);
@@ -2358,7 +2358,7 @@ static void cpr3_regulator_debugfs_thread_add(struct cpr3_thread *thread)
	}

	temp = debugfs_create_int("ceiling_volt", S_IRUGO, aggr_dir,
				  &ctrl->aggr_corner.ceiling_volt);
				  &thread->aggr_corner.ceiling_volt);
	if (IS_ERR_OR_NULL(temp)) {
		cpr3_err(ctrl, "thread %u aggr ceiling_volt debugfs file creation failed\n",
			thread->thread_id);
@@ -2366,7 +2366,7 @@ static void cpr3_regulator_debugfs_thread_add(struct cpr3_thread *thread)
	}

	temp = debugfs_create_int("open_loop_volt", S_IRUGO, aggr_dir,
				  &ctrl->aggr_corner.open_loop_volt);
				  &thread->aggr_corner.open_loop_volt);
	if (IS_ERR_OR_NULL(temp)) {
		cpr3_err(ctrl, "thread %u aggr open_loop_volt debugfs file creation failed\n",
			thread->thread_id);
@@ -2374,7 +2374,7 @@ static void cpr3_regulator_debugfs_thread_add(struct cpr3_thread *thread)
	}

	temp = debugfs_create_int("last_volt", S_IRUGO, aggr_dir,
				  &ctrl->aggr_corner.last_volt);
				  &thread->aggr_corner.last_volt);
	if (IS_ERR_OR_NULL(temp)) {
		cpr3_err(ctrl, "thread %u aggr last_volt debugfs file creation failed\n",
			thread->thread_id);