From patchwork Tue Aug 23 21:23:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 12952618 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 9F1BDC32772 for ; Tue, 23 Aug 2022 21:23:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229979AbiHWVXG (ORCPT ); Tue, 23 Aug 2022 17:23:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbiHWVXG (ORCPT ); Tue, 23 Aug 2022 17:23:06 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C7C389808 for ; Tue, 23 Aug 2022 14:23:04 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id 20so13930582plo.10 for ; Tue, 23 Aug 2022 14:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=tuz1493y5LHiNwEe6XwII/bIcU4nWijq2K6QDL5tITs=; b=PChKyPfKBGLrWsDb3RQw8hHWPW6P36wY6RVrVp3cyccjsLkcv15Yd3SHixUb2vTkbu eNhUbCACRrkfRDBpDRNYQUjwod7L/nG1Slt82LDV1lTM+TCPjxEGwI001CFCrdgz7puz BUXvO3pbe490/hfyoWviGBhaL5Qj0YdJM3gxM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=tuz1493y5LHiNwEe6XwII/bIcU4nWijq2K6QDL5tITs=; b=am7JmgEk5ZdSuOb763ZZY2ycXOu8RrSa0sY1vyySTaBd+0CLF2C2G7FNI80sYsR4lw aGnyrdHTnYojwb6Hp/CNOMFhOgE1Hodif6Cu1zFVH1Wlu+8isehOlUip87oEUA2pA2zg MxFRsBtAc+xrcU02krZJiZG3IWZq2TAELGPrSaVzoUKvIPnAfyLi0y9+lkU40QKTIfQr swDx8SbpNPtCjau/rfZRvOlcB6ANjoZF0vs38STUisVljqGk73SRXbJLBxkkPd+24HzG ufPf71hJW4PUCxbqX4IvsnHormP8ZCO1NDVt55ZMlBFuf9gXvphpIt2pQzumpA8/4PKx xdNQ== X-Gm-Message-State: ACgBeo3zYcf+zFe+NnckraDV+ZAiwI6FmwaR0O0TFIrJbFdDfNenS3Du bg7gk4EhkePcBhkbYSi0eEHjsA== X-Google-Smtp-Source: AA6agR61U3W1D49veW7t3wdUmwP8XfdySJz1qFxuH+VdrROwQk4UomkZ9pJJz3k8edQqVlH2jNY7fA== X-Received: by 2002:a17:902:e552:b0:16d:d3c0:85fb with SMTP id n18-20020a170902e55200b0016dd3c085fbmr25427017plf.38.1661289783919; Tue, 23 Aug 2022 14:23:03 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:653f:9151:f544:1470]) by smtp.gmail.com with ESMTPSA id a1-20020aa795a1000000b005366696b735sm6544811pfk.77.2022.08.23.14.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 14:23:03 -0700 (PDT) From: Stephen Boyd To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul Cc: linux-kernel@vger.kernel.org, patches@lists.linux.dev, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Kuogee Hsieh , kernel test robot Subject: [PATCH v2] drm/msm/dp: Silence inconsistent indent warning Date: Tue, 23 Aug 2022 14:23:02 -0700 Message-Id: <20220823212302.1744145-1-swboyd@chromium.org> X-Mailer: git-send-email 2.37.1.595.g718a3a8f04-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Build robots complain smatch warnings: drivers/gpu/drm/msm/dp/dp_link.c:969 dp_link_process_link_status_update() warn: inconsistent indenting Fix it along with a trailing space from the same commit. Cc: Kuogee Hsieh Fixes: ea530388e64b ("drm/msm/dp: skip checking LINK_STATUS_UPDATED bit") Reported-by: kernel test robot Signed-off-by: Stephen Boyd Reviewed-by: Abhinav Kumar --- Changes from v1 (https://lore.kernel.org/r/20220823024356.783318-1-swboyd@chromium.org) * Roll in extra whitespace fix drivers/gpu/drm/msm/dp/dp_link.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 diff --git a/drivers/gpu/drm/msm/dp/dp_link.c b/drivers/gpu/drm/msm/dp/dp_link.c index 36f0af02749f..36bb6191d2f0 100644 --- a/drivers/gpu/drm/msm/dp/dp_link.c +++ b/drivers/gpu/drm/msm/dp/dp_link.c @@ -786,7 +786,7 @@ static int dp_link_process_link_training_request(struct dp_link_private *link) link->request.test_lane_count); link->dp_link.link_params.num_lanes = link->request.test_lane_count; - link->dp_link.link_params.rate = + link->dp_link.link_params.rate = drm_dp_bw_code_to_link_rate(link->request.test_link_rate); return 0; @@ -965,8 +965,7 @@ static int dp_link_process_link_status_update(struct dp_link_private *link) if (channel_eq_done && clock_recovery_done) return -EINVAL; - - return 0; + return 0; } /**