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

Commit ff318a51 authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Ben Skeggs
Browse files

drm/nouveau/volt/gk20a: constify and name v_scale



Give a name to this constant so we at least get an idea of what it is
for.

Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 328bee46
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -80,10 +80,11 @@ gk20a_volt_get_cvb_t_voltage(int speedo, int temp, int s_scale, int t_scale,
static int
gk20a_volt_calc_voltage(const struct cvb_coef *coef, int speedo)
{
	static const int v_scale = 1000;
	int mv;

	mv = gk20a_volt_get_cvb_t_voltage(speedo, -10, 100, 10, coef);
	mv = DIV_ROUND_UP(mv, 1000);
	mv = DIV_ROUND_UP(mv, v_scale);

	return mv * 1000;
}