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: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Alexandre Courbot 2016-06-01 17:39:17 +09:00 committed by Ben Skeggs
parent 328bee464b
commit ff318a51bf
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}