[PATCH] drm/amdgpu/powerplay: whitespace cleanup

Alex Deucher alexdeucher at gmail.com
Fri Mar 30 15:29:15 UTC 2018


Fix confusing indentation.

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c
index 8aea88aed1d3..0adaf36b6d68 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c
@@ -38,11 +38,11 @@ static const union atom_voltage_object_v4 *pp_atomfwctrl_lookup_voltage_type_v4(
 
 	while (offset < size) {
 		const union atom_voltage_object_v4 *voltage_object =
-				(const union atom_voltage_object_v4 *)(start + offset);
+			(const union atom_voltage_object_v4 *)(start + offset);
 
-	if (voltage_type == voltage_object->gpio_voltage_obj.header.voltage_type &&
-		voltage_mode == voltage_object->gpio_voltage_obj.header.voltage_mode)
-		return voltage_object;
+		if (voltage_type == voltage_object->gpio_voltage_obj.header.voltage_type &&
+		    voltage_mode == voltage_object->gpio_voltage_obj.header.voltage_mode)
+			return voltage_object;
 
 		offset += le16_to_cpu(voltage_object->gpio_voltage_obj.header.object_size);
 
-- 
2.13.6



More information about the amd-gfx mailing list