We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a5c158 commit d54c518Copy full SHA for d54c518
drivers/gpu/drm/msm/dp/dp_link.c
@@ -49,21 +49,21 @@ static int dp_aux_link_power_up(struct drm_dp_aux *aux,
49
struct dp_link_info *link)
50
{
51
u8 value;
52
- int err;
+ ssize_t len;
53
54
if (link->revision < 0x11)
55
return 0;
56
57
- err = drm_dp_dpcd_readb(aux, DP_SET_POWER, &value);
58
- if (err < 0)
59
- return err;
+ len = drm_dp_dpcd_readb(aux, DP_SET_POWER, &value);
+ if (len < 0)
+ return len;
60
61
value &= ~DP_SET_POWER_MASK;
62
value |= DP_SET_POWER_D0;
63
64
- err = drm_dp_dpcd_writeb(aux, DP_SET_POWER, value);
65
66
+ len = drm_dp_dpcd_writeb(aux, DP_SET_POWER, value);
67
68
usleep_range(1000, 2000);
69
0 commit comments