disp: msm: replace PTR_RET with PTR_ERR_OR_ZERO

Commit fad7c9020948 ("err.h: remove deprecated PTR_RET for good")
deprecated PTR_RET. This change updates the msm driver by
replacing it with PTR_ERR_OR_ZERO.

Change-Id: Ibe8cefd7b9ce27dc63886eb3861aab5fc8ba268a
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
This commit is contained in:
Samantha Tran
2020-09-17 14:35:20 -07:00
zatwierdzone przez Nilaan Gunabalachandran
rodzic e199ecbfb8
commit df3f51f9c4
4 zmienionych plików z 9 dodań i 9 usunięć

Wyświetl plik

@@ -78,7 +78,7 @@ static int dsi_panel_vreg_get(struct dsi_panel *panel)
for (i = 0; i < panel->power_info.count; i++) {
vreg = devm_regulator_get(panel->parent,
panel->power_info.vregs[i].vreg_name);
rc = PTR_RET(vreg);
rc = PTR_ERR_OR_ZERO(vreg);
if (rc) {
DSI_ERR("failed to get %s regulator\n",
panel->power_info.vregs[i].vreg_name);

Wyświetl plik

@@ -208,7 +208,7 @@ static int dsi_phy_supplies_init(struct platform_device *pdev,
regs = &phy->pwr_info.digital;
for (i = 0; i < regs->count; i++) {
vreg = devm_regulator_get(&pdev->dev, regs->vregs[i].vreg_name);
rc = PTR_RET(vreg);
rc = PTR_ERR_OR_ZERO(vreg);
if (rc) {
DSI_PHY_ERR(phy, "failed to get %s regulator\n",
regs->vregs[i].vreg_name);
@@ -220,7 +220,7 @@ static int dsi_phy_supplies_init(struct platform_device *pdev,
regs = &phy->pwr_info.phy_pwr;
for (i = 0; i < regs->count; i++) {
vreg = devm_regulator_get(&pdev->dev, regs->vregs[i].vreg_name);
rc = PTR_RET(vreg);
rc = PTR_ERR_OR_ZERO(vreg);
if (rc) {
DSI_PHY_ERR(phy, "failed to get %s regulator\n",
regs->vregs[i].vreg_name);