Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8840905ybi; Thu, 6 Jun 2019 21:48:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyLIuR7OrrrMHMy5pfocYFbsARt2/vV7UOib9VFCmgxcQAyEIdLoKAchp2wE/1ZmkqVx/kv X-Received: by 2002:a17:902:29a7:: with SMTP id h36mr1258996plb.158.1559882938543; Thu, 06 Jun 2019 21:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559882938; cv=none; d=google.com; s=arc-20160816; b=QXQnIoji75XjzmZbavP6T5vdjBrQk7WyUdqmM5xNkr56O8R7FTcAieR5BdN6xAS0+F eacKM9BPSJpxYszKTUz14rZ3nz6dif2O0JKKRqhjqpHFHsNPF9rzPD13ussew5TcH754 6+wNC+ARmANOTjuAdMPnTBsz7nPX0sHvX9GPK3lMldLW6brcLW3AsGMVMsR+oOzysqvA mfl63aNogCzDFXLtzGbyAjsZJY4PKoyquY1B3N8ou6hRvPn8/qMR9X3KsTNY0c82wJUp v9AnT+T0tyjEm5fL/g13QmCJZD/VCou2wO/vkc4dlZYVY1127WC+4gxey3HAAxoZsu55 35Rw== 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=WJVHjkMmFxtpqrvFxD6VDdMJmS3mdvCf/T8uC/iQfpE=; b=diO2fyjAIaGSWr2ELNLJPBJ5p4lwx34z/qiPqKGx1X7aqwflFJIS6bPIbwPClKsSzH 1ibFgPP9SjhK05L5/bBoDtikSNXv3WRnjx+V/P4RGV1qcdcozC+QOzPtlxqScgduezs7 xg9G9GgOyfv2yI+T8hbgxO48vglXPB2YDJ+7KZK5YK6hDDR7rBqGcELoYD0W7nbgGkru zeMPaemvC+d7vFGAcdFve17SlG0a9e4wB0OcAndj3pGEIO3STAEp991x4wBZBXjC+EUe nTcxB3igTwBr7C1A/1PNN/z7hjskxW9iUZJa4CRObHu4J9WWKGqdVA32ken42dcFFM7J aRCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UbobLsOM; 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 q17si971907pgl.27.2019.06.06.21.48.30; Thu, 06 Jun 2019 21:48:58 -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=UbobLsOM; 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 S1726818AbfFGEq4 (ORCPT + 99 others); Fri, 7 Jun 2019 00:46:56 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34991 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726722AbfFGEqv (ORCPT ); Fri, 7 Jun 2019 00:46:51 -0400 Received: by mail-pg1-f196.google.com with SMTP id s27so488819pgl.2 for ; Thu, 06 Jun 2019 21:46:50 -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=WJVHjkMmFxtpqrvFxD6VDdMJmS3mdvCf/T8uC/iQfpE=; b=UbobLsOMfL1T8Y0PMIQvPCXr7tTrhm91DzadWXd2tdTSVeCebke0OvMzDGsCLXNl/L zAC6aypF3axI2ZYyrDr5ekxwe6yoJK4CHetlk21tKv0O++yJrc6dnkmbQ2lBXduSh5hK kSihjYI194TaXo6ZdWUbg/Mj8q9Guxahr0C4cHXjC62tQ+f/E3D+13Bcg5iAc6DUyh+C LprWGC900VUMW82wXpkiyhoD+hx19F7MsNZUE42iiDxE+RnhFIz3u+B/Zk+IUlhMp+E9 dlbQKj4AJx6n5V0nyoEo9ewd8uOYYUKEbg9W75fP7/V79/+BHwtXFPjZHbCpnPXfE0jo BQRg== 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=WJVHjkMmFxtpqrvFxD6VDdMJmS3mdvCf/T8uC/iQfpE=; b=P9nt14vV+OrvQKMY0w3sZAPy1gc0Acvj7UsOuN83Q6Ykk6JeztXyt6KRpcPGRnGCsM BqvNNexnwtsnvw2iVaq1s6DVquIeLbxlDZxKkupoJtrn+kKNKpw49Z6hcH9pdWu338tX DBPEESbX2PyPBCLVdxkrygALXRTCLaik+e6ga3viwBHl8kLuda3YlMgGaik8vPz3QHGd MrQJSd3CvcOOGHutHgLo9fsC6Vhywa1oEvtiwOhPBjbnWulTm5bzt89nJM/jqXCZb6wa Bo1TQeHbFndNVCicS5I64m3kCSQJke0ZAt31hqOss/7Ewssaulbt/KUSKZi6BHUW1hg6 eggw== X-Gm-Message-State: APjAAAVLzQIRfKHsMCEUFm28TBAVpIzuFapLd1fbCZgy2eibk6uywaGk A9zYgL1ktAWXnTLiyhfPiB8= X-Received: by 2002:a63:2160:: with SMTP id s32mr1099397pgm.431.1559882810101; Thu, 06 Jun 2019 21:46:50 -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 o13sm919516pfh.23.2019.06.06.21.46.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jun 2019 21:46:49 -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 v4 15/15] drm/bridge: tc358767: Replace magic number in tc_main_link_enable() Date: Thu, 6 Jun 2019 21:45:50 -0700 Message-Id: <20190607044550.13361-16-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190607044550.13361-1-andrew.smirnov@gmail.com> References: <20190607044550.13361-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 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"); -- 2.21.0