Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp284318img; Thu, 21 Mar 2019 20:30:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvUNx8yPf5Nab2jfXt/f89+B8kt7kZeZYaVX1G0g7GWyKoVQ8wrsMn3liYOEo+PFSBhnJn X-Received: by 2002:a63:4f43:: with SMTP id p3mr6758597pgl.207.1553225440645; Thu, 21 Mar 2019 20:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553225440; cv=none; d=google.com; s=arc-20160816; b=fHn7gytDPBnvVr+SWwbg1+KpNu6KnXLJKba6x7imQCWKrlkzwBX2KwT2vwmZuNPH0F i78XIfw8qcXWlMbpnH21AIevlVkbv2Ih+9B1kdMKniSuscgzEn5KoZMyiuefFvPkweSe /KNqhsZRDk8xBeL+Gv0/lb/NGDt03JBkCHriD1Pg9sIZVKejDyPl3JpnspGFci3KsUOk KtJnhM4GlIxTMrwRuuWotOOCXb5se2XyEowuU4lxDYTGP3HKcJ9IFlZal7hE1LSYlrm2 E5TLgA2oNIHNhjAwvXvRyunS6zZoBARHgSTg6O5mzckWweFv19zMIxnG/FHSXJ40XjBP b6xQ== 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=PepZC5bd26Tk1NrlpBtC7ziOr6hFFYvCPCCSR9RW8p8=; b=XcSoLvsLWcSsd1Z9BtSiHPShmkruY2sDNhUWytwuZj7RTY9Z+wYIbeegm0FIpElSMm 3fOPmr07Wun//r1ekXHW2m/OY06EHW9Mg+2KqF7AABRQdR79Rqs3jW+Ukf+bcS2Lphu3 BNN3OWTothb9KaaVxbq2tS/SEvK8WyMGXEXQCY4yQKU9ZG2tPbhJGYaBSALdjaz5cnkv r5LA0U/fQQA4Y8tfaeAV/Z9kipVuajFhjZaj0QcEe9j5BRRHhqmxAfToSB9HVXNLpe6z TMHYhA8KBbKWfmnMExXa2p29eyImAs0Q1ICCTi4QbVGshvZYb13ZpgFXjf6kQskEtPiF PFhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="GcGhzxz/"; 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 f65si5803612pff.195.2019.03.21.20.30.26; Thu, 21 Mar 2019 20:30:40 -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="GcGhzxz/"; 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 S1727785AbfCVD3k (ORCPT + 99 others); Thu, 21 Mar 2019 23:29:40 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:39895 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727739AbfCVD3g (ORCPT ); Thu, 21 Mar 2019 23:29:36 -0400 Received: by mail-pg1-f193.google.com with SMTP id h8so498766pgp.6 for ; Thu, 21 Mar 2019 20:29:36 -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=PepZC5bd26Tk1NrlpBtC7ziOr6hFFYvCPCCSR9RW8p8=; b=GcGhzxz/AqGXTIZUruK+8pD+RAae9UmrqbG+NH/dlNyJaGp1za2hmYp8tROr8YwWLp KaySBEb3aNWDPCrASWYuufGX+EfC5/m1PA6ilt5dmR79vTT4Ib0U3h+n8r+TaR91h9Tw fTqHEgqWWx5VNvMHH9GBmjMtIPqZ9OA/Svi/+FRl952NtpyELz/hVhc7weGiE0yfkAej K4hogLsLYNLpWYpvrkS0tjaaGe+Qi8ozXcOBWYcocL5b+jTJv8SxO0K+tKno59wcJe1m BHDhFp9Vzld10PyjJic5HBIqCiqbD3xRU3yc2NX7H5EKy1/5dfI4XmlZY2NtoLsMn7KK 5/RQ== 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=PepZC5bd26Tk1NrlpBtC7ziOr6hFFYvCPCCSR9RW8p8=; b=dN+SxqURkZQrDD/wggI1vasKLpX34bJ3TCkYqGJpSZXhEencQ8Z+DPE2SI6mRWpjyB /+XNu3PC1uMRyMzn/8A5xnugHWm3JvTZENVxgxuMNBz6z439aNlfFKS3QurgoDKgBqLt pBFrFfP3Y2B6lO9mQhgT/Ua0LDT5pgA9stY2klwEnCqKmnhGe//Yuo6rbZ9OA36fNDCu jpI0/fd7ULOI4GySZ89e8VSqqAI/Q2o2+14ywDo9gtNftamHUT9cVSFe24nDbLnOOckA +MsBhOgq5xa69P/kpZgzdI+sjihl2gGuDOk6E/yrDMbezUFXw8VfiZkbr+OcDk0i7O0X 2nGw== X-Gm-Message-State: APjAAAV9l2pi/Zv623G5Ju1NeLHx3WdygrYyqvk4Om/0g6NkoKEPi9v3 8mQJVo+C+WkAPTtU0F91YGo= X-Received: by 2002:a65:43c7:: with SMTP id n7mr6797157pgp.173.1553225375647; Thu, 21 Mar 2019 20:29:35 -0700 (PDT) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id o76sm16154476pfa.156.2019.03.21.20.29.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Mar 2019 20:29:35 -0700 (PDT) From: Andrey Smirnov To: dri-devel@lists.freedesktop.org Cc: Andrey Smirnov , Archit Taneja , Andrzej Hajda , Laurent Pinchart , Tomi Valkeinen , Andrey Gusakov , Philipp Zabel , Chris Healy , Lucas Stach , linux-kernel@vger.kernel.org Subject: [PATCH v2 15/15] drm/bridge: tc358767: Replace magic number in tc_main_link_enable() Date: Thu, 21 Mar 2019 20:29:01 -0700 Message-Id: <20190322032901.12045-16-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190322032901.12045-1-andrew.smirnov@gmail.com> References: <20190322032901.12045-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: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: Tomi Valkeinen Cc: Andrey Gusakov Cc: Philipp Zabel 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 b106e6181a5f..68af144b8768 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -823,7 +823,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]; u32 error; dev_dbg(tc->dev, "link enable\n"); -- 2.20.1