From nobody Sun Feb 8 10:04:01 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44D1BC001DE for ; Wed, 2 Aug 2023 03:23:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231987AbjHBDXO (ORCPT ); Tue, 1 Aug 2023 23:23:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229800AbjHBDXH (ORCPT ); Tue, 1 Aug 2023 23:23:07 -0400 Received: from out28-171.mail.aliyun.com (out28-171.mail.aliyun.com [115.124.28.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CF4BE4C for ; Tue, 1 Aug 2023 20:23:05 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08068386|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_alarm|0.0424418-0.000212042-0.957346;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047212;MF=sunran001@208suo.com;NM=1;PH=DS;RN=5;RT=5;SR=0;TI=SMTPD_---.U6PnZk8_1690946577; Received: from localhost.localdomain(mailfrom:sunran001@208suo.com fp:SMTPD_---.U6PnZk8_1690946577) by smtp.aliyun-inc.com; Wed, 02 Aug 2023 11:22:59 +0800 From: Ran Sun To: alexander.deucher@amd.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ran Sun Subject: [PATCH] drm/amd/display: Clean up errors in bios_parser2.c Date: Wed, 2 Aug 2023 03:22:56 +0000 Message-Id: <20230802032256.10846-1-sunran001@208suo.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Fix the following errors reported by checkpatch: ERROR: switch and case should be at the same indent ERROR: code indent should use tabs where possible Signed-off-by: Ran Sun --- .../drm/amd/display/dc/bios/bios_parser2.c | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c b/drivers/g= pu/drm/amd/display/dc/bios/bios_parser2.c index 540d19efad8f..033ce2638eb2 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c @@ -772,20 +772,20 @@ static enum bp_result bios_parser_get_device_tag( return BP_RESULT_BADINPUT; =20 switch (bp->object_info_tbl.revision.minor) { - case 4: - default: + case 4: + default: /* getBiosObject will return MXM object */ - object =3D get_bios_object(bp, connector_object_id); + object =3D get_bios_object(bp, connector_object_id); =20 if (!object) { BREAK_TO_DEBUGGER(); /* Invalid object id */ return BP_RESULT_BADINPUT; } =20 - info->acpi_device =3D 0; /* BIOS no longer provides this */ - info->dev_id =3D device_type_from_device_id(object->device_tag); - break; - case 5: + info->acpi_device =3D 0; /* BIOS no longer provides this */ + info->dev_id =3D device_type_from_device_id(object->device_tag); + break; + case 5: object_path_v3 =3D get_bios_object_from_path_v3(bp, connector_object_id); =20 if (!object_path_v3) { @@ -1580,13 +1580,13 @@ static bool bios_parser_is_device_id_supported( uint32_t mask =3D get_support_mask_for_device_id(id); =20 switch (bp->object_info_tbl.revision.minor) { - case 4: - default: - return (le16_to_cpu(bp->object_info_tbl.v1_4->supporteddevices) &= mask) !=3D 0; - break; - case 5: - return (le16_to_cpu(bp->object_info_tbl.v1_5->supporteddevices) & mask)= !=3D 0; - break; + case 4: + default: + return (le16_to_cpu(bp->object_info_tbl.v1_4->supporteddevices) & mask) = !=3D 0; + break; + case 5: + return (le16_to_cpu(bp->object_info_tbl.v1_5->supporteddevices) & mask) = !=3D 0; + break; } =20 return false; @@ -1755,7 +1755,7 @@ static enum bp_result bios_parser_get_firmware_info( case 2: case 3: result =3D get_firmware_info_v3_2(bp, info); - break; + break; case 4: result =3D get_firmware_info_v3_4(bp, info); break; @@ -2225,7 +2225,7 @@ static enum bp_result bios_parser_get_disp_connector_= caps_info( return BP_RESULT_BADINPUT; =20 switch (bp->object_info_tbl.revision.minor) { - case 4: + case 4: default: object =3D get_bios_object(bp, object_id); =20 --=20 2.17.1