]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/dp: Clean up white space in drm_edp_backlight_probe_state()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 2 Jul 2025 12:55:10 +0000 (07:55 -0500)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Sun, 6 Jul 2025 11:49:00 +0000 (14:49 +0300)
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>
drivers/gpu/drm/display/drm_dp_helper.c

index e46c9dfc9753c264c08a6fa1f0fd0e3687861386..5d8a4691af2c8dfa164d4ad0c072f95ca8314622 100644 (file)
@@ -4229,14 +4229,14 @@ drm_edp_backlight_probe_state(struct drm_dp_aux *aux, struct drm_edp_backlight_i
                                            "%s: Failed to read backlight level: %d\n",
                                            aux->name, ret);
                                return ret;
-               }
+                       }
 
-               /*
-                * Incase luminance is set we want to send the value back in nits but since
-                * DP_EDP_PANEL_TARGET_LUMINANCE stores values in millinits we need to divide
-                * by 1000.
-                */
-               return (buf[0] | buf[1] << 8 | buf[2] << 16) / 1000;
+                       /*
+                        * Incase luminance is set we want to send the value back in nits but
+                        * since DP_EDP_PANEL_TARGET_LUMINANCE stores values in millinits we
+                        * need to divide by 1000.
+                        */
+                       return (buf[0] | buf[1] << 8 | buf[2] << 16) / 1000;
                } else {
                        ret = drm_dp_dpcd_read_data(aux, DP_EDP_BACKLIGHT_BRIGHTNESS_MSB,
                                                    buf, size);