Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp411142lqd; Wed, 24 Apr 2024 06:20:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3BW3kV+9Qp7M1RlgsTiq22spugTrQgAyxOwsky8zl1efDHztGHKVfiKqODw1G1s7m6ygmfA4I1egpbP9OBHYOoNmh3MJCZdcH4An5Ng== X-Google-Smtp-Source: AGHT+IGZsivqkNEtJUqtYIhkmSZ4tuSDHcP62/ujWW2WAS5dVnqQp/PV2fsMp1H15+EbLLTa4gh7 X-Received: by 2002:a17:906:40d1:b0:a52:6721:f276 with SMTP id a17-20020a17090640d100b00a526721f276mr1636038ejk.19.1713964845160; Wed, 24 Apr 2024 06:20:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713964845; cv=pass; d=google.com; s=arc-20160816; b=OGL/5BWQe6dwy/cP4mlXck+Nljbcum59iCPk4/EAN1SbJEtMiMG2fulj1pjOCKmqJe B+dOEgzrMUegYnvvlBN49MbQPwj3cu8FhitE+WrAGvROFYbPh+jxfdqa2fumaX8fYKjM hXRTeWzYIKuabHLuq88mBBmremU2ku3lAwO3MwLzBDrcGRh+Q/Y8Oy4iCNi2dmX/rRrS nZeaKdsz6eLuNxWiIzASzsb8U8WVbkLCjk9mN00A9LhY1gAK7bvIgWdrIPMAQ9my83Bz moS0KzB57l9oKnx1m0dvlkZDUBPSlWdVIjsrrklQqbicX28cRaf41N8+wwZLJG0/GjRO hdeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2TyuW/9e9KLJDEWEaZausa76J+1CE2fdIpzJjL72yaU=; fh=Jg23oU3cXWdkPfzPkuRPX6qJ7oMWOR3huVo1S8VlkA0=; b=NUy8bsI421oBJMdi0T31K7ec7m4V7yG2j3EzFKwqViS4qwfX4Qbi/yW/hc7fUMcWRi 8L5hFzIP6dM7r1V94wdppYvLfmmkbwECAyZc5Bj1zgUbPI/Gjkp6kY7cIUQQM7S3dOLt W+HcLWJOoH7GgTp7qx/B2USsDDvWGfO9ce07Q2gK0pfXxI2AqTNVmEbe+IIShhTdd+hG aiR5bQWVOb+1tlAPDGJgOhSyDhC6WRmdxNgNeYPDRszBkYzhF312JJj5djSP2YziA/bC m3TycTXcUezVfjFSfp8yEbPVASvTy/3uqiWTl8Rz5++zhK9WDzt+/MMofD+8wNWlR5x5 wfaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eTBfayaM; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-156947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jo2-20020a170906f6c200b00a5875201216si2523165ejb.170.2024.04.24.06.20.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 06:20:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eTBfayaM; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-156947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DDC4F1F23739 for ; Wed, 24 Apr 2024 13:20:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D89F15B97E; Wed, 24 Apr 2024 13:20:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eTBfayaM" Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDFB52AEFB for ; Wed, 24 Apr 2024 13:20:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713964835; cv=none; b=iM2Sb5OkriDb3XidcbAO9ll0fmfnXCHJQ7u0EuIs6SWdIDHRmFRJ7sNx5Jl4L5EIlnTQ59an10GJSp6oPMb4MgHZ1QWF2wTw50qMheYRHe/T3CMGi4/82P2CNuWy7tNdOAhFPu/EsaTXd8X6D5AtRbdeubm0b/F3J1qeSFK6rNk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713964835; c=relaxed/simple; bh=5EpFadq0ZInp1s+VEvsfR5N+7n7nws126mwu9XDnLXE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XmqjWNmI6Wg9w+wTlazJL8MDzZXUG9N/9TJx4qKez0pf5e6dK/LPLKHhHoQlNVkgWiykhe0l13obJZR/hbPw27VojPH8P/qwZg2PQy585eGG7XEYYw9nBFlPjrFLi3mfxVXIkgeFhyknfRZx/WzAXXZ3ZRBik/OMMaGVzH2PJUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=eTBfayaM; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-41a7ae25d53so23812085e9.1 for ; Wed, 24 Apr 2024 06:20:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713964832; x=1714569632; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=2TyuW/9e9KLJDEWEaZausa76J+1CE2fdIpzJjL72yaU=; b=eTBfayaMluyOz2ft47IvZiC/RxNWuj+OgCJnPI9A7xstu+naHkHmPCZ70enTZnL/U/ R40LFLkhs/1ITUR2JH5E2lfziNeGQEH0pJ1R73f8GyLu4p3h5krhCKkornWYNXk2i22j tE/I1jCwnUacBraRfY5gE9A12gvtX0X/7NWGVSMdI408PTnVgD3SxSqX+/cpG+quLxeP cxuxx1xMaJqgcyUMH37/sAiYHzPwVoK47cXzJIqlFhtxWQP50jNoRgFn/EaKZiY+xdfY yws39nncTZfz6rB6XW6ABYvA5gELfwLJ9pJRSURDOj4QfbqmPxEmCSJbZPXDeAefs7A9 52+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713964832; x=1714569632; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2TyuW/9e9KLJDEWEaZausa76J+1CE2fdIpzJjL72yaU=; b=LdHgknwMXQZ422D8ejdYYhQ+Qi0rbu3q/atdevuCVlzB2zsLyFVCT9trHXph6z6X7e JuRPEIRnHGCuB3urHHxfcVGhg2t+J7HydfeYm6uZyA3KnGB21powG6bH7nGdD42jTWLY seFunUxCq60luvwOopJVTQXnyR1UizO3PzLsUriLohTY/uEPYszQ4cdPspJLBV7zFzb5 4b3nKPqsfazejN58BC8jn87VBx8+ZJdlFmLS/87eufsggzj5QZJmzzLTbO5mI0WW6Jqp DUff98BePG/ZWNqIxmPRtjCSkSD4w0x80DA668M/bF2p7FvdIi9wfi2KxKsUqfH8nTwc Knvg== X-Forwarded-Encrypted: i=1; AJvYcCVJwUtQM++RKsc9rCIl3fLqRwdXZG3xyVbfVim+Iqutil7YB+DDIMJCn43yGD5hWDGc9amTSC8SaHv9HLRVcXh0MVrw1TdiBvsq4RrG X-Gm-Message-State: AOJu0Yy8ncmOZq/WGPH1KsORyML+CT+bCHAjdEsj5XU97RIFvRd7zsP9 MSHpsbZKeaPDT1m+MPJISQKsEj1RyLwDdLXz869Swdy02xqf4S+Wkn04w0lk7+0= X-Received: by 2002:adf:ec49:0:b0:34b:e79:2677 with SMTP id w9-20020adfec49000000b0034b0e792677mr1820503wrn.63.1713964832050; Wed, 24 Apr 2024 06:20:32 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id e37-20020a5d5965000000b0034a44c615ddsm15180075wri.88.2024.04.24.06.20.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 06:20:31 -0700 (PDT) Date: Wed, 24 Apr 2024 16:20:27 +0300 From: Dan Carpenter To: Christian =?iso-8859-1?Q?K=F6nig?= Cc: Harry Wentland , Charlene Liu , Leo Li , Rodrigo Siqueira , Alex Deucher , "Pan, Xinhui" , David Airlie , Daniel Vetter , Alvin Lee , Wenjing Liu , Jun Lei , Tom Chung , Dillon Varone , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] drm/amd/display: re-indent dc_power_down_on_boot() Message-ID: <4a996c51-e101-47a0-8a89-78c6f9f01e0f@moroto.mountain> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Apr 24, 2024 at 03:11:08PM +0200, Christian K?nig wrote: > Am 24.04.24 um 13:41 schrieb Dan Carpenter: > > These lines are indented too far. Clean the whitespace. > > > > Signed-off-by: Dan Carpenter > > --- > > drivers/gpu/drm/amd/display/dc/core/dc.c | 7 +++---- > > 1 file changed, 3 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c > > index 8eefba757da4..f64d7229eb6c 100644 > > --- a/drivers/gpu/drm/amd/display/dc/core/dc.c > > +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c > > @@ -5043,11 +5043,10 @@ void dc_interrupt_ack(struct dc *dc, enum dc_irq_source src) > > void dc_power_down_on_boot(struct dc *dc) > > { > > if (dc->ctx->dce_environment != DCE_ENV_VIRTUAL_HW && > > - dc->hwss.power_down_on_boot) { > > - > > - if (dc->caps.ips_support) > > - dc_exit_ips_for_hw_access(dc); > > + dc->hwss.power_down_on_boot) { > > + if (dc->caps.ips_support) > > + dc_exit_ips_for_hw_access(dc); > > Well while at it can't the two ifs be merged here? > > (I don't know this code to well, but it looks like it). > I'm sorry, I don't see what you're saying. I probably should have deleted the other blank line as well, though. It introduces a checkpatch.pl --strict warning. regards, dan carpenter