Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp425971rwo; Tue, 1 Aug 2023 20:36:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlESt+d0Ar3CS92skHTMiYPhl5Fvyy+RGQuBoC2hqhVneIaw1e602lkNuDx/1WlfZWDjHr7k X-Received: by 2002:a17:903:283:b0:1bb:8f37:dd0b with SMTP id j3-20020a170903028300b001bb8f37dd0bmr15630531plr.52.1690947362286; Tue, 01 Aug 2023 20:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690947362; cv=none; d=google.com; s=arc-20160816; b=lJcYZSCHUx9yzqfyK+bl+rTpUTm1MuZsiAkbIaWQUIrdAuitkM5KmWKuZdyAFdgjIH GZI3nsRfzldjRGrGZTHoanNaBaash4ZifBQkIjXuXblnuf8lj4Rskcf4Ck8+ma4KAoiP cOjEA3I57gdKBU8VWf93jyD48Kh9b5Gpc7w3cx2+qnw7bG814O7TxbjOEtGvHyd9ldv4 SNwymJfjD/PC5fqg0QhxuvPNo9YnOUNdByYecNYpEnXE/cPFC1Xpi4o+/avApj5VxdDq KcIly2ET5+58IuxnjRlDaCBUcTndPiRv/lewV1aZkN+qHwZP2Mv/WA9iCyMsuaWi4kjw llAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=KOc4cdhpaQWFgciqPAkG0LAERkG7C+8LnfI51uo6wXQ=; fh=M7zDVNG5wYj+Ni7TE5shUh1U8LRNWB+keJIKRth6hag=; b=G5kg32t73wJSuJ6M7ky3U5q32oEPNJ2qRxT56KaVJnBp3Hi+vwADGSnRO3YNDcdeOb 1IM+s38FMbr3PZp88qGknI/fjvljEvhnDFNiWlcLcRVrLkgE+3Tq2sDfYY3IH6jmQqdS aYN87TI3IzSWhDRyu16zeXkLPTdY7LnHudzaq5wgVmC+2QVU7KYuBnwYNrbqUFFLw2fO 9E96QXgiz+z4+X8eA3jWEyY9dSNYFa+5bVpiw8euLHHxnV2dY5yWASk0Sr0sVyaRKIaj ESejLj4qTbgpU528uGAZS6Q1B6/nYuWE83gcrYP/m8Vu+cshcweb8bEzQLIipa+9yk6l OoQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lc12-20020a170902fa8c00b001b3bd85f54bsi1554593plb.35.2023.08.01.20.35.48; Tue, 01 Aug 2023 20:36:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231320AbjHBDXJ (ORCPT + 99 others); Tue, 1 Aug 2023 23:23:09 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/gpu/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; switch (bp->object_info_tbl.revision.minor) { - case 4: - default: + case 4: + default: /* getBiosObject will return MXM object */ - object = get_bios_object(bp, connector_object_id); + object = get_bios_object(bp, connector_object_id); if (!object) { BREAK_TO_DEBUGGER(); /* Invalid object id */ return BP_RESULT_BADINPUT; } - info->acpi_device = 0; /* BIOS no longer provides this */ - info->dev_id = device_type_from_device_id(object->device_tag); - break; - case 5: + info->acpi_device = 0; /* BIOS no longer provides this */ + info->dev_id = device_type_from_device_id(object->device_tag); + break; + case 5: object_path_v3 = get_bios_object_from_path_v3(bp, connector_object_id); if (!object_path_v3) { @@ -1580,13 +1580,13 @@ static bool bios_parser_is_device_id_supported( uint32_t mask = get_support_mask_for_device_id(id); switch (bp->object_info_tbl.revision.minor) { - case 4: - default: - return (le16_to_cpu(bp->object_info_tbl.v1_4->supporteddevices) & mask) != 0; - break; - case 5: - return (le16_to_cpu(bp->object_info_tbl.v1_5->supporteddevices) & mask) != 0; - break; + case 4: + default: + return (le16_to_cpu(bp->object_info_tbl.v1_4->supporteddevices) & mask) != 0; + break; + case 5: + return (le16_to_cpu(bp->object_info_tbl.v1_5->supporteddevices) & mask) != 0; + break; } return false; @@ -1755,7 +1755,7 @@ static enum bp_result bios_parser_get_firmware_info( case 2: case 3: result = get_firmware_info_v3_2(bp, info); - break; + break; case 4: result = 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; switch (bp->object_info_tbl.revision.minor) { - case 4: + case 4: default: object = get_bios_object(bp, object_id); -- 2.17.1