Skip to content

Commit f00de18

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
drm/bridge: ti-sn65dsi86: Propagate errors in .get_state() to the caller
.get_state() can return an error indication. Make use of it to propagate failing hardware accesses. Acked-by: Douglas Anderson <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 3dae106 commit f00de18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpu/drm/bridge/ti-sn65dsi86.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,19 +1512,19 @@ static int ti_sn_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm,
15121512

15131513
ret = regmap_read(pdata->regmap, SN_PWM_EN_INV_REG, &pwm_en_inv);
15141514
if (ret)
1515-
return 0;
1515+
return ret;
15161516

15171517
ret = ti_sn65dsi86_read_u16(pdata, SN_BACKLIGHT_SCALE_REG, &scale);
15181518
if (ret)
1519-
return 0;
1519+
return ret;
15201520

15211521
ret = ti_sn65dsi86_read_u16(pdata, SN_BACKLIGHT_REG, &backlight);
15221522
if (ret)
1523-
return 0;
1523+
return ret;
15241524

15251525
ret = regmap_read(pdata->regmap, SN_PWM_PRE_DIV_REG, &pre_div);
15261526
if (ret)
1527-
return 0;
1527+
return ret;
15281528

15291529
state->enabled = FIELD_GET(SN_PWM_EN_MASK, pwm_en_inv);
15301530
if (FIELD_GET(SN_PWM_INV_MASK, pwm_en_inv))

0 commit comments

Comments
 (0)