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

Commit 9b4639bb authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Tomi Valkeinen
Browse files

video: fbdev: omap2: Remove deprecated regulator_can_change_voltage() usage



regulator_can_change_voltage() is deprecated and it's use is not necessary
as commit:
6a0028b3 regulator: Deprecate regulator_can_change_voltage()
describers it clearly.
As there is no practical use of it it can be removed.
At this point the regulator_set_voltage() calls can not be removed as the
DT data need to be fixed first.

Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent c3b46c73
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -1180,14 +1180,12 @@ static int dsi_regulator_init(struct platform_device *dsidev)
		return PTR_ERR(vdds_dsi);
	}

	if (regulator_can_change_voltage(vdds_dsi)) {
	r = regulator_set_voltage(vdds_dsi, 1800000, 1800000);
	if (r) {
		devm_regulator_put(vdds_dsi);
		DSSERR("can't set the DSI regulator voltage\n");
		return r;
	}
	}

	dsi->vdds_dsi_reg = vdds_dsi;

+5 −7
Original line number Diff line number Diff line
@@ -114,14 +114,12 @@ static int hdmi_init_regulator(void)
		return PTR_ERR(reg);
	}

	if (regulator_can_change_voltage(reg)) {
	r = regulator_set_voltage(reg, 1800000, 1800000);
	if (r) {
		devm_regulator_put(reg);
		DSSWARN("can't set the regulator voltage\n");
		return r;
	}
	}

	hdmi.vdda_reg = reg;

+5 −7
Original line number Diff line number Diff line
@@ -131,14 +131,12 @@ static int hdmi_init_regulator(void)
		return PTR_ERR(reg);
	}

	if (regulator_can_change_voltage(reg)) {
	r = regulator_set_voltage(reg, 1800000, 1800000);
	if (r) {
		devm_regulator_put(reg);
		DSSWARN("can't set the regulator voltage\n");
		return r;
	}
	}

	hdmi.vdda_reg = reg;