Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1458826rdd; Wed, 10 Jan 2024 22:44:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHufNUtzKOQCJeZ9xXOvTZd0sKsE1Kc1+utrrCbhxQZXYLc5H9e0xJ/nnrT2gnl/nTP8p3Y X-Received: by 2002:a05:620a:12d5:b0:783:1f65:cbb1 with SMTP id e21-20020a05620a12d500b007831f65cbb1mr366649qkl.31.1704955489929; Wed, 10 Jan 2024 22:44:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704955489; cv=none; d=google.com; s=arc-20160816; b=svDJh8v/VoT31/QCbMWBb1BtbMKCC7LDeFSS4z5vYp2NLeOZd6cmLKCQ3GyTUcwMS8 pe34puCVXsapVx+14CwQuz+KVJ1pv2hM7HfHBaO8AeFee1MMik11BcX7DV+G+nhFVH47 dqTQWVTP3Jil9ltKhG+dmm3ZmFm6ir6jwFHlEUxwa2VCgU/ZY03mCpNJtWib++4p1Aeg PlAXoZZS5WbhnjsnEUeU68pIQc4rukmaLXhCToQaisZaB4+NUILZKG8nbuROcEl2uQuO pX3wU4OOZQGDYk+qfmOoLURqczBFQPoOqfkXyD8Sb8mxi9k/5odpuRTcj0A8z1HeDBVv kJdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=1gXnhZ66Ygt/sxM3Iu3BuDo8HgYk1gMQ33s6Qoaqb2c=; fh=VY5SMsSlH+LBOmK6UFMJy3wqpTeYPV1zH/VUDndaBtM=; b=pW064l5BrLUPfel08cWCYeh4iEUjleyaJXMCnbkj59kd1JX1Uu6oyay+ynblxoNOUc N94Qzdyr9aZmw9K8O2sc5mmeUU5gAT5TF7v2AgoK8iIEsm3mz081onyUFVlq7iCrTjIM Ql0BNFpIozur+ic5Tur4RuBZqb+3LpS44gGBJxiBziXdLrB13lgZeVS5ZZdUNYMsUMd5 7I06omo8cP7yG3iBX+THMH+K8MtmOMjvSG+6umalSqlg+q0yC/Y369KtsXavW6qWhrNx I5kQKW0EvNUIRTpSmlhkJwk9HmCn40DkajmqFfqPchWsFSl6gU+253Ax+cVjMn5RHLsb Etrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=csxWlf9j; spf=pass (google.com: domain of linux-kernel+bounces-23113-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bq18-20020a05620a469200b00783223599fdsi356577qkb.253.2024.01.10.22.44.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 22:44:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23113-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=csxWlf9j; spf=pass (google.com: domain of linux-kernel+bounces-23113-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 976241C24FF6 for ; Thu, 11 Jan 2024 06:44:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92E79C8FD; Thu, 11 Jan 2024 06:44:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="csxWlf9j" Received: from m16.mail.126.com (m16.mail.126.com [220.197.31.6]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1EB779E3 for ; Thu, 11 Jan 2024 06:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=1gXnhZ66Ygt/sxM3Iu 3BuDo8HgYk1gMQ33s6Qoaqb2c=; b=csxWlf9jmSrpm+h/fCPsCUXhUTSDqtgnzw rLZ9VejvOJf8n33gMZfXLiWizcdTGCLzzavnQy8SIFIB4gjm8UN0B1ImDHiheeHY JbR/1lRBtpg15HLWZ1dlgUT1fjc3PnwSk8YID8JuBh3QBhW2Hn0zu42A6WE2SkVP eFWihGNrY= Received: from localhost.localdomain (unknown [182.148.14.173]) by gzga-smtp-mta-g0-1 (Coremail) with SMTP id _____wD3P9syjp9l+RqiAA--.12958S2; Thu, 11 Jan 2024 14:44:02 +0800 (CST) From: chenxuebing To: airlied@gmail.com, tzimmermann@suse.de, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, chenxuebing Subject: [PATCH] drm: Clean up errors in drm_dp_helper.h Date: Thu, 11 Jan 2024 06:44:00 +0000 Message-Id: <20240111064400.8878-1-chenxb_99091@126.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID:_____wD3P9syjp9l+RqiAA--.12958S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrKw18JFy7Gr1rZw4rCryfJFb_yoWfAwbE9F 18X34DurnrCF1qqr1DAF4Sgr10kFnxZ3y8uF13Ka43AFy2vr1rt39Fvw4DX3W5Ar47XF1q q3Z7tFnavws7KjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUZNVJUUUUU== X-CM-SenderInfo: hfkh05lebzmiizr6ij2wof0z/1tbiGAtixWVLZWcFwAABsc Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Fix the following errors reported by checkpatch: ERROR: space prohibited before open square bracket '[' Signed-off-by: chenxuebing --- drivers/gpu/drm/display/drm_dp_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helper.c index b1ca3a1100da..2704bf703040 100644 --- a/drivers/gpu/drm/display/drm_dp_helper.c +++ b/drivers/gpu/drm/display/drm_dp_helper.c @@ -2133,7 +2133,7 @@ void drm_dp_aux_unregister(struct drm_dp_aux *aux) } EXPORT_SYMBOL(drm_dp_aux_unregister); -#define PSR_SETUP_TIME(x) [DP_PSR_SETUP_TIME_ ## x >> DP_PSR_SETUP_TIME_SHIFT] = (x) +#define PSR_SETUP_TIME(x)[DP_PSR_SETUP_TIME_ ## x >> DP_PSR_SETUP_TIME_SHIFT] = (x) /** * drm_dp_psr_setup_time() - PSR setup in time usec -- 2.17.1