Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8917517ybi; Thu, 6 Jun 2019 23:44:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEVikaOBYw4ub7rH8Z66t32eBUA5C4wJLX506YCGcuqk4j6398ODNbFYaiXduL2W/CX0Rb X-Received: by 2002:a63:2224:: with SMTP id i36mr1475725pgi.70.1559889842759; Thu, 06 Jun 2019 23:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559889842; cv=none; d=google.com; s=arc-20160816; b=baCvufUw1KlOikl+kYVySL1Z2elmyy2/f7DX5p8CDR1glFP+pMPrVxDaGqa2FclWzh IQDOd8/RHZyc0dkDqW3kRUoOsNVpOXzJF3umNBeYoNeCxEfxilCo18prqZV7Nh+UPs7x VDter7oYoqkEiYTF+UwdY9Lbrp6Bju1apy2WkYMSC4JPYlAQM5sG9JuuGQ7BF0fl7Fkt VajNKZTwh+qWt/IBNEqC/+QOjplBph72ELED//+Bj/y3VD0jkB6yk/zDtX8Uo/78YPZt GNS//CILoytVgp9ygZahlIWvaGb+jSOAHOkhqOzS/cd5Xwsdz5Yr44hZECZGUrLMr6xc FdNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=3qxmw66B41o0ihEUJxKIfGNz16QqnTiQIV4yVoLj8P4=; b=tZUNBK3eSpOwov0egtzmkLsEgSpzBM3UoqDYBXMLC8E4n7TzIg1sTJQOWp9D2f1xU+ FmksysR0b3sZpXCM3Bz19J922dtPhyZf8AxESu2HwGXFLwCGBiH1FcIWgikongZg4qtQ mxB+E+c06rLk5/nBbx74koyfv6LImv3Ay66TTrbiiX3GGvjnK4w/3/yt3OrWpXEeJDO6 FjSXsqo2qVPZMPuwzG9O1jJ5o/NfewTVg2sNOEhheqpoOt2zUhOQx2JZa0C0aRpNZ0oA gAcexvFS5R4X1yXm6XffCaBs4Bd/9TI5Nn/tZKZEMDZRNqZ0javf+r76TQ/nPTS9qCkJ J5MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=vNS+Cswa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n28si1080930pgl.23.2019.06.06.23.43.46; Thu, 06 Jun 2019 23:44:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=vNS+Cswa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727388AbfFGGmP (ORCPT + 99 others); Fri, 7 Jun 2019 02:42:15 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:42417 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbfFGGmO (ORCPT ); Fri, 7 Jun 2019 02:42:14 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190607064212euoutp015dbcf277181bfb1f1bb18b21c83c1c57~l13KKVBsT1080110801euoutp01j for ; Fri, 7 Jun 2019 06:42:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190607064212euoutp015dbcf277181bfb1f1bb18b21c83c1c57~l13KKVBsT1080110801euoutp01j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1559889732; bh=3qxmw66B41o0ihEUJxKIfGNz16QqnTiQIV4yVoLj8P4=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=vNS+CswafpSV6iODjg7g7s0xdIcyzm4sp+nGwGHaJQRfGl1FMNs9eu+ZkIfWREaak y4+9euNlLiPOdlzrSvb5vqkrH2c49j4/xJ0UGp4dX8FIb4Opcyn/T67QS5cPyN+FUL TP7AgGUtjDs4naQprEMcJnc5SYIAYXdm5d03ndIs= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190607064212eucas1p298d26982546a2b1b38d8b81a4cc1e17a~l13JW2ozf3057230572eucas1p2Q; Fri, 7 Jun 2019 06:42:12 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 8A.6F.04377.3470AFC5; Fri, 7 Jun 2019 07:42:11 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190607064211eucas1p174370d94ad4fc041efb6fd43c549b880~l13IkkNvt3212532125eucas1p1C; Fri, 7 Jun 2019 06:42:11 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190607064210eusmtrp2b19e77c660c443d0cd64838fe0e35dd1~l13IU8uix0307003070eusmtrp21; Fri, 7 Jun 2019 06:42:10 +0000 (GMT) X-AuditID: cbfec7f4-113ff70000001119-ee-5cfa0743d466 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 4B.BC.04146.2470AFC5; Fri, 7 Jun 2019 07:42:10 +0100 (BST) Received: from [106.120.51.74] (unknown [106.120.51.74]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190607064210eusmtip16216a1cef3c6d602454481abeb3ef8f8~l13Hsd0Xw1500215002eusmtip1T; Fri, 7 Jun 2019 06:42:10 +0000 (GMT) Subject: Re: [PATCH v4 15/15] drm/bridge: tc358767: Replace magic number in tc_main_link_enable() To: Andrey Smirnov , dri-devel@lists.freedesktop.org Cc: Laurent Pinchart , Tomi Valkeinen , Andrey Gusakov , Philipp Zabel , Cory Tusar , Chris Healy , Lucas Stach , linux-kernel@vger.kernel.org From: Andrzej Hajda Message-ID: Date: Fri, 7 Jun 2019 08:42:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190607044550.13361-16-andrew.smirnov@gmail.com> Content-Transfer-Encoding: 8bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOKsWRmVeSWpSXmKPExsWy7djP87rO7L9iDJ6/0rJo7rC1aDrUwGrx 48phFouDe44zWVz5+p7N4sHcm0wWnROXsFtc3jWHzeLuvRMsFuvn32Jz4PJ4MPU/k8fOWXfZ PWZ3zGT1uN99nMmj/6+Bx/Eb25k8Pm+S8zg39SxTAEcUl01Kak5mWWqRvl0CV8aWyQEFc7kq Xk/4xtzAeIaji5GTQ0LARGLqhOvsXYxcHEICKxglel/3QDlfGCU6/z+Fcj4zSszevJgJpuXd 89tQieWMEtN6T7BCOG8ZJRZePMQKUiUskCxx9P5mFhBbRCBA4lPTTjaQImaB00wS7btuM4Mk 2AQ0Jf5uvskGYvMK2Ems236cEcRmEVCRaFwwFywuKhAhcf/YBlaIGkGJkzOfgA3lFLCXOPi0 F6yGWUBeonnrbGYIW1zi1pP5TCDLJASusUssuveGFeJuF4l/9zYzQ9jCEq+Ob2GHsGUk/u+c D/VbvcT9FS3MEM0djBJbN+yEarCWOHz8ItAgDqANmhLrd+lDhB0lLm+7zQYSlhDgk7jxVh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BBvSmJlVWpRfnxRaU5q8SFGU6Dn JjJLiSbnA9NIXkm8oamhuYWlobmxubGZhZI4b4fAwRghgfTEktTs1NSC1CKYPiYOTqkGRjb9 1p/HpnPv29vJd6P26Y/yl5en18WF550MEFEXDX3k+K6jwf5P7TJ7E5VNC6vkD9ovWJZgO/0N Q31br7KGJYOXzCNfZveSitAzvMtv12yxPfP8yr5LrgUPLzhz2v7i/8pb+9c6efODdR/nX9IR TFTZGcU/TzFmleNlecPg2XfkYzQOy1bXK7EUZyQaajEXFScCADQ8mRrrAgAA X-CMS-MailID: 20190607064211eucas1p174370d94ad4fc041efb6fd43c549b880 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190607044651epcas1p3cccde08d3b4f4a414f84ef757973e804 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190607044651epcas1p3cccde08d3b4f4a414f84ef757973e804 References: <20190607044550.13361-1-andrew.smirnov@gmail.com> <20190607044550.13361-16-andrew.smirnov@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07.06.2019 06:45, Andrey Smirnov wrote: > We don't need 8 byte array, DP_LINK_STATUS_SIZE (6) should be > enough. This also gets rid of a magic number as a bonus. > > Signed-off-by: Andrey Smirnov Reviewed-by: Andrzej Hajda  -- Regards Andrzej > Cc: Andrzej Hajda > Cc: Laurent Pinchart > Cc: Tomi Valkeinen > Cc: Andrey Gusakov > Cc: Philipp Zabel > Cc: Cory Tusar > Cc: Chris Healy > Cc: Lucas Stach > Cc: dri-devel@lists.freedesktop.org > Cc: linux-kernel@vger.kernel.org > --- > drivers/gpu/drm/bridge/tc358767.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c > index 4a245144aa83..05c5fab011f8 100644 > --- a/drivers/gpu/drm/bridge/tc358767.c > +++ b/drivers/gpu/drm/bridge/tc358767.c > @@ -874,7 +874,7 @@ static int tc_main_link_enable(struct tc_data *tc) > u32 dp_phy_ctrl; > u32 value; > int ret; > - u8 tmp[8]; > + u8 tmp[DP_LINK_STATUS_SIZE]; > > dev_dbg(tc->dev, "link enable\n"); >