Skip to content

Commit e33f256

Browse files
Dan Carpenterlumag
authored andcommitted
drm/dp: Clean up white space in drm_edp_backlight_probe_state()
This code needs to be indented one more tab. Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> Link: https://lore.kernel.org/r/30b896c2-ae71-4cf2-9511-2713da7e1632@sabinyo.mountain Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
1 parent cce91f2 commit e33f256

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

drivers/gpu/drm/display/drm_dp_helper.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4229,14 +4229,14 @@ drm_edp_backlight_probe_state(struct drm_dp_aux *aux, struct drm_edp_backlight_i
42294229
"%s: Failed to read backlight level: %d\n",
42304230
aux->name, ret);
42314231
return ret;
4232-
}
4232+
}
42334233

4234-
/*
4235-
* Incase luminance is set we want to send the value back in nits but since
4236-
* DP_EDP_PANEL_TARGET_LUMINANCE stores values in millinits we need to divide
4237-
* by 1000.
4238-
*/
4239-
return (buf[0] | buf[1] << 8 | buf[2] << 16) / 1000;
4234+
/*
4235+
* Incase luminance is set we want to send the value back in nits but
4236+
* since DP_EDP_PANEL_TARGET_LUMINANCE stores values in millinits we
4237+
* need to divide by 1000.
4238+
*/
4239+
return (buf[0] | buf[1] << 8 | buf[2] << 16) / 1000;
42404240
} else {
42414241
ret = drm_dp_dpcd_read_data(aux, DP_EDP_BACKLIGHT_BRIGHTNESS_MSB,
42424242
buf, size);

0 commit comments

Comments
 (0)