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

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

drm/nouveau/volt/gk20a: rename constructor



Strip the _ prefix off the gk20a volt constructor.

Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent ff318a51
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ gk20a_volt = {
};

int
_gk20a_volt_ctor(struct nvkm_device *device, int index,
gk20a_volt_ctor(struct nvkm_device *device, int index,
		const struct cvb_coef *coefs, int nb_coefs,
		struct gk20a_volt *volt)
{
@@ -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,
	return gk20a_volt_ctor(device, index, gk20a_cvb_coef,
			       ARRAY_SIZE(gk20a_cvb_coef), volt);
}
+3 −3
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ struct gk20a_volt {
	struct regulator *vdd;
};

int _gk20a_volt_ctor(struct nvkm_device *device, int index,
int gk20a_volt_ctor(struct nvkm_device *device, int index,
		    const struct cvb_coef *coefs, int nb_coefs,
		    struct gk20a_volt *volt);

+2 −2
Original line number Diff line number Diff line
@@ -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,
	return gk20a_volt_ctor(device, index, gm20b_cvb_coef,
			       ARRAY_SIZE(gm20b_cvb_coef), volt);
}