提交 328bee46 编写于 作者: A Alexandre Courbot 提交者: Ben Skeggs

drm/nouveau/volt/gk20a: make unused public functions static

Nobody else is using these, so make them private.
Signed-off-by: NAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 d2680907
...@@ -77,7 +77,7 @@ gk20a_volt_get_cvb_t_voltage(int speedo, int temp, int s_scale, int t_scale, ...@@ -77,7 +77,7 @@ gk20a_volt_get_cvb_t_voltage(int speedo, int temp, int s_scale, int t_scale,
return mv; return mv;
} }
int static int
gk20a_volt_calc_voltage(const struct cvb_coef *coef, int speedo) gk20a_volt_calc_voltage(const struct cvb_coef *coef, int speedo)
{ {
int mv; int mv;
...@@ -88,7 +88,7 @@ gk20a_volt_calc_voltage(const struct cvb_coef *coef, int speedo) ...@@ -88,7 +88,7 @@ gk20a_volt_calc_voltage(const struct cvb_coef *coef, int speedo)
return mv * 1000; return mv * 1000;
} }
int static int
gk20a_volt_vid_get(struct nvkm_volt *base) gk20a_volt_vid_get(struct nvkm_volt *base)
{ {
struct gk20a_volt *volt = gk20a_volt(base); struct gk20a_volt *volt = gk20a_volt(base);
...@@ -103,7 +103,7 @@ gk20a_volt_vid_get(struct nvkm_volt *base) ...@@ -103,7 +103,7 @@ gk20a_volt_vid_get(struct nvkm_volt *base)
return -EINVAL; return -EINVAL;
} }
int static int
gk20a_volt_vid_set(struct nvkm_volt *base, u8 vid) gk20a_volt_vid_set(struct nvkm_volt *base, u8 vid)
{ {
struct gk20a_volt *volt = gk20a_volt(base); struct gk20a_volt *volt = gk20a_volt(base);
...@@ -113,7 +113,7 @@ gk20a_volt_vid_set(struct nvkm_volt *base, u8 vid) ...@@ -113,7 +113,7 @@ gk20a_volt_vid_set(struct nvkm_volt *base, u8 vid)
return regulator_set_voltage(volt->vdd, volt->base.vid[vid].uv, 1200000); return regulator_set_voltage(volt->vdd, volt->base.vid[vid].uv, 1200000);
} }
int static int
gk20a_volt_set_id(struct nvkm_volt *base, u8 id, int condition) gk20a_volt_set_id(struct nvkm_volt *base, u8 id, int condition)
{ {
struct gk20a_volt *volt = gk20a_volt(base); struct gk20a_volt *volt = gk20a_volt(base);
......
...@@ -41,9 +41,4 @@ int _gk20a_volt_ctor(struct nvkm_device *device, int index, ...@@ -41,9 +41,4 @@ int _gk20a_volt_ctor(struct nvkm_device *device, int index,
const struct cvb_coef *coefs, int nb_coefs, const struct cvb_coef *coefs, int nb_coefs,
struct gk20a_volt *volt); struct gk20a_volt *volt);
int gk20a_volt_calc_voltage(const struct cvb_coef *coef, int speedo);
int gk20a_volt_vid_get(struct nvkm_volt *volt);
int gk20a_volt_vid_set(struct nvkm_volt *volt, u8 vid);
int gk20a_volt_set_id(struct nvkm_volt *volt, u8 id, int condition);
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册