mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-20 21:34:45 -04:00
drm/nouveau/volt/gk20a: rename constructor
Strip the _ prefix off the gk20a volt constructor. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
committed by
Ben Skeggs
parent
ff318a51bf
commit
ebe5e526c1
@@ -144,9 +144,9 @@ gk20a_volt = {
|
||||
};
|
||||
|
||||
int
|
||||
_gk20a_volt_ctor(struct nvkm_device *device, int index,
|
||||
const struct cvb_coef *coefs, int nb_coefs,
|
||||
struct gk20a_volt *volt)
|
||||
gk20a_volt_ctor(struct nvkm_device *device, int index,
|
||||
const struct cvb_coef *coefs, int nb_coefs,
|
||||
struct gk20a_volt *volt)
|
||||
{
|
||||
struct nvkm_device_tegra *tdev = device->func->tegra(device);
|
||||
int i, uv;
|
||||
@@ -181,6 +181,6 @@ gk20a_volt_new(struct nvkm_device *device, int index, struct nvkm_volt **pvolt)
|
||||
return -ENOMEM;
|
||||
*pvolt = &volt->base;
|
||||
|
||||
return _gk20a_volt_ctor(device, index, gk20a_cvb_coef,
|
||||
ARRAY_SIZE(gk20a_cvb_coef), volt);
|
||||
return gk20a_volt_ctor(device, index, gk20a_cvb_coef,
|
||||
ARRAY_SIZE(gk20a_cvb_coef), volt);
|
||||
}
|
||||
|
||||
@@ -37,8 +37,8 @@ struct gk20a_volt {
|
||||
struct regulator *vdd;
|
||||
};
|
||||
|
||||
int _gk20a_volt_ctor(struct nvkm_device *device, int index,
|
||||
const struct cvb_coef *coefs, int nb_coefs,
|
||||
struct gk20a_volt *volt);
|
||||
int gk20a_volt_ctor(struct nvkm_device *device, int index,
|
||||
const struct cvb_coef *coefs, int nb_coefs,
|
||||
struct gk20a_volt *volt);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -51,6 +51,6 @@ gm20b_volt_new(struct nvkm_device *device, int index, struct nvkm_volt **pvolt)
|
||||
return -ENOMEM;
|
||||
*pvolt = &volt->base;
|
||||
|
||||
return _gk20a_volt_ctor(device, index, gm20b_cvb_coef,
|
||||
ARRAY_SIZE(gm20b_cvb_coef), volt);
|
||||
return gk20a_volt_ctor(device, index, gm20b_cvb_coef,
|
||||
ARRAY_SIZE(gm20b_cvb_coef), volt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user