Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5407125ybi; Wed, 12 Jun 2019 01:55:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxY2VD7aybPwREj1lgOo6lb2nSLQeweUdA1MC5qIo+t7/qitqmL/iQWCW2pa1PRvkn2u/Rx X-Received: by 2002:a62:5e06:: with SMTP id s6mr87819960pfb.193.1560329702684; Wed, 12 Jun 2019 01:55:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560329702; cv=none; d=google.com; s=arc-20160816; b=LQgWJRpCuNJ9WGxqpkikgg8j+amdb2nrQWYgHyubE1ynW0BTbOBwjPYqdsoruFTbpD Xa5LGGYB2MKXXNIoHzRHC+fq6VxcBwVUWZ4vCqHs4BkdSfnm+XKZ7XOJPmgzkw1CORWg 2l/jRk4ayi9CfNsGnXin36xm5sc3Izn5OVUJfqvl49XqzPE9XcklGGFnmo1vGKvGxgPx 5Nvbl8aV09Z4k80M54J+2UmmINTbPZXbCLXzcnDtBILNxTHZwjMt6KhUAxlhg7q1Wf/1 mwXvwjBoC0t+L8IjXHL7Nj4c16Lc00vw+lhaFOgLiZOPUDT32vWePTr4dk6QYLi6Ga0O yh4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=igoVoB0OnXmy6EuJPmaIUyWNG2dIdSj4pnrf3gfv3+o=; b=yQWHhqr4HgFT7oSSuzT8kuOiY1Dv4SzuNPEaxcWkPAL+BeVOVzmTFO+WWM5skuqO81 yrtTc49dyt7litBdsbYsDxjFEq+1QcwFZ/2sa/GLg4R6tkBriZ0S30USxYfwUXjEGDom IrKzEQhoJJSi6CvfTq9xkwX0aXdCiYG+oUHX4sFfRRavqZmWnSHoOocm82xcEX6q3nYi QA/stm7pLgTrVFFGS05nBER0LRR/kTevOfi3JfvSAXBnb1U9s58/J2CFW+Ju9QeVyPqb Jx8qD3ILCO0UHqEwNdR63FiSEHYyJCNshxYmx8+0l7+PTqNtwK7FvoMtPEYnh4CMs70E EM+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=teC0eGfz; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si14824437plp.185.2019.06.12.01.54.48; Wed, 12 Jun 2019 01:55: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=@gmail.com header.s=20161025 header.b=teC0eGfz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408676AbfFLIdb (ORCPT + 99 others); Wed, 12 Jun 2019 04:33:31 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:33054 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408666AbfFLId3 (ORCPT ); Wed, 12 Jun 2019 04:33:29 -0400 Received: by mail-pf1-f194.google.com with SMTP id x15so9251980pfq.0 for ; Wed, 12 Jun 2019 01:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=igoVoB0OnXmy6EuJPmaIUyWNG2dIdSj4pnrf3gfv3+o=; b=teC0eGfzqUO3ALXtEZBFv+MKaGc6LEKWBQiJAEeODv6JYqxVtDS3W+4mJ3f/IM7Rrl /nBZFQW/Aq56XVyB0zHcWM5QjtZinq/CVvkfKJiR4fPOcL9mdpbCMRr+AlGWS8MgK5Lu 0R8Wa2PgAroQB8xFNAqU4qYPFARBqwrwwAj7T4g2Pnmv4iQ4cRCCPdCUm55RjsHLDic4 anxaURAwP4BsQnqPOrkO550RdpAva/9SivhuijKsP392SD0X3CbVvQuFiumZ4oXYX3mQ O6vdTFP7ugHku9MNcQ/gtReA2mwI9lY+z2AAJs/owk5UH8eCpE0BzTML6d4DIM9yaX+N L+ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=igoVoB0OnXmy6EuJPmaIUyWNG2dIdSj4pnrf3gfv3+o=; b=tPGh1UdP5t/OJ7wRru27Z2W/N0vVlCpi65U2jpe5REHihngMkW09X8OCmglV8LZpjj vv1Z2/C+QmWRj9UMJqVlTohDipDDyhVnHfNPTa9b8hNL8ysMe1TQCcn1ftwGVJ3bWcx/ 8LjPS6UmPBYKSLXWSSuUR4ezWEEJEE4F36UhqUCrFtKJyS6J2DiJsfHDiZXPms/o18WN 62oPnBeAwgWToFjJmGE80PtgxJXNVKCCpZYFlmRIssy+6EZMtOku1O2YEBLUtLNKpdKB ZkJX4DDKDTaKXshJcOQvn2llsFq4zQXK06LSITTfngYgKBIf4SFUIQAP6ydy9OziaGub GCLg== X-Gm-Message-State: APjAAAWWaTpopYDkL5LYsJrLwhR+21xAtQtTFLbz0NCNA84GGrNcnoGl cSWzxprC+jcJnKdltPavn48= X-Received: by 2002:a17:90a:a790:: with SMTP id f16mr31979845pjq.27.1560328408785; Wed, 12 Jun 2019 01:33:28 -0700 (PDT) Received: from localhost.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id d21sm18845991pfr.162.2019.06.12.01.33.27 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 01:33:28 -0700 (PDT) From: Andrey Smirnov To: dri-devel@lists.freedesktop.org Cc: Andrey Smirnov , Andrzej Hajda , Laurent Pinchart , Tomi Valkeinen , Andrey Gusakov , Philipp Zabel , Cory Tusar , Chris Healy , Lucas Stach , linux-kernel@vger.kernel.org Subject: [PATCH v5 15/15] drm/bridge: tc358767: Replace magic number in tc_main_link_enable() Date: Wed, 12 Jun 2019 01:32:52 -0700 Message-Id: <20190612083252.15321-16-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190612083252.15321-1-andrew.smirnov@gmail.com> References: <20190612083252.15321-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 81ed359487c7..b403c7bad156 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"); -- 2.21.0