aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fosphor/main.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2013-11-08 11:28:34 +0100
committerSylvain Munaut <tnt@246tNt.com>2013-11-10 22:24:06 +0100
commitca3f3919763cc72539315e3b1306897f953c58c9 (patch)
treef193c744cd36c0dc4a6a8e6cbcd2e6d67e91c1d5 /lib/fosphor/main.c
parent3ccf1aa52dead3b91f7d767f5f4ab4fc6ec316d2 (diff)
fosphor: Store the selected power range in the top level 'struct fosphor'
The CL code keeps its own copy since those values are tweaked to be applied in the kernel. We may also need the callback in the future if instead of storing them we reconfigure the kernel at that point. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'lib/fosphor/main.c')
-rw-r--r--lib/fosphor/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fosphor/main.c b/lib/fosphor/main.c
index 40047ce..642bd14 100644
--- a/lib/fosphor/main.c
+++ b/lib/fosphor/main.c
@@ -233,7 +233,7 @@ glfw_cb_key(GLFWwindow *wnd, int key, int scancode, int action, int mods)
break;
}
- fosphor_set_range(g_as->fosphor, g_as->db_ref, k_db_per_div[g_as->db_per_div_idx]);
+ fosphor_set_power_range(g_as->fosphor, g_as->db_ref, k_db_per_div[g_as->db_per_div_idx]);
}
static GLFWwindow *
@@ -313,7 +313,7 @@ int main(int argc, char *argv[])
if (!g_as->fosphor)
return -1;
- fosphor_set_range(g_as->fosphor, g_as->db_ref, k_db_per_div[g_as->db_per_div_idx]);
+ fosphor_set_power_range(g_as->fosphor, g_as->db_ref, k_db_per_div[g_as->db_per_div_idx]);
/* Run ! */
while (!glfwWindowShouldClose(wnd))