Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6402248ybi; Wed, 5 Jun 2019 00:08:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwfcKaKA7ruLJJeWGvGL8Xo3lH0zHW7WL+N6+TqB/qJ82RNVj5fkfj9PiI/KU3dtlxZlW3 X-Received: by 2002:a17:90a:2201:: with SMTP id c1mr41989352pje.10.1559718537968; Wed, 05 Jun 2019 00:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559718537; cv=none; d=google.com; s=arc-20160816; b=SyzFPJ92+H13QRZYB0Rm5IvcjLjHUVqA1JIDMMdmkAKw0sOmLCbZb+wPq03q/oIdRC OuF6PzqrlLKu3gAqs+1PmnkuLoYWrrDzB5RA3qUEMF880jWqOYmCo+VfQoHWPbsOSoJu RaCCJJs7s44vxPG9Yw26uj60QIpZJ0WfiE0pZfadDbpHVOfzhHQp/yI37Mi3QXCuf8Ab pw+n+Mqzzynykqdiqri09B5rlH/At4Dp19qwqPaVlvWNmFYnVBbRgZL///Q3RFVwOjPM iqzG8iPEjT7LHPKSzp0Irmx1BJpAgPZVFgqonmfIG3i/OZqzz0dbhzDbCodjI7ep6lNd kRwg== 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=rbPIQS9Fmw5oTtgndIQLG4f4C7zxyYTux8kyKub57FA=; b=zVs53Vt4z4sJvRBd/HRLrOVMZCKKwUBVJeeg1m5IQoDQgOtYPXfRewmPWAe5mNtiqK ncLpW8DWOvrvZFqHnwc6xeo9EBPbaHpw7QnvtbJaV7G/bKoyFzmWHzW9QXs2C3XKNu9G 2goJdr84RokQBCXlXk3C6YLEus75IiHpl3mQjH8tQThRHtD3OdE+r00EIvQxmY1qe6Q+ H9PcJJP7q13yFb3nHIYbAC1mA5Pfy+WCUYcml0tSUtEvqmnSZIepM9TpJoPA1H8NpHD1 eXXDaHwXbQWhbBxCyzLEGFGfDEOHYhMZfij5XT0z1VKW4oxMjsBCmf2EB+TnQRYzRr5H 4Wkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="rV/FZ2k5"; 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 f59si27646252plb.107.2019.06.05.00.08.40; Wed, 05 Jun 2019 00:08:57 -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="rV/FZ2k5"; 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 S1726934AbfFEHFy (ORCPT + 99 others); Wed, 5 Jun 2019 03:05:54 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:33179 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726885AbfFEHFq (ORCPT ); Wed, 5 Jun 2019 03:05:46 -0400 Received: by mail-pl1-f195.google.com with SMTP id g21so9362654plq.0 for ; Wed, 05 Jun 2019 00:05:46 -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=rbPIQS9Fmw5oTtgndIQLG4f4C7zxyYTux8kyKub57FA=; b=rV/FZ2k5ROTiwaU+QXmT18Q1X1XIfCyR4CuDNLomAL9GmG0K/H7k/bXUWOVlmzuxqr be68f1Qm8zwGc69LlLEY8vyoyGxmNKq55wQVgKt/VXliZaiPk3mV99UE1jVCCM/B4cPI /asHO2RFXQmPBlhXRY1iQpScW0QI69rG+4BevPUvNLGUIghl/BgY3M/rh1h2aFLGD26y Bs7o/6pdZ6XOABeOEynE65OpxMzLv1sFJd9kv0B8TCA770G1lPRQLoTCyzumG331Alzb 0TSoxYTi5nJSmy51QGVkT8NUpMW7xCNmhtz+ulFHyySALZYnIobgPOCHzNk7YNdEOqoM Vudg== 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=rbPIQS9Fmw5oTtgndIQLG4f4C7zxyYTux8kyKub57FA=; b=XuTfQu0YrA3ShkFVqr760F4AE1y2PX3moPGGiGVRsSQPJ6uoNvb7v43yIcLOer3Ctk HuQuyGn5tSbAFhiTwm0ZYhYdzDMXmNy45Y4+b8B4mYRPdTamuOBNXzscy4FZrKkoMxiJ I/bRk9hhw0+/iuvvYK1qMNticG1eCDuoYgYM+zsBbpUKkrJXYQXpTHVYbBTEUKjkmGN0 1IwLkK5mnvh8FLBYOC+NEADrtRC051n4Odi4rBAK659ZcwFQgxXfBPKPRsIEPLdSuV3O 8eeHcqlAgcYnLAPw6/S7Yu7x93Yo9dEq8M3tl5NeKF+3qo+f//efloEJEU1aKAublztQ 1Qrg== X-Gm-Message-State: APjAAAXe2Mib3gx270dz3JxS68cLO0Fy87kGl5RqWcxO31M1jIN9Qqt1 pjwztvbnbSt+XRdJLYzJZZWOzluoeTc= X-Received: by 2002:a17:902:542:: with SMTP id 60mr19568359plf.68.1559718346021; Wed, 05 Jun 2019 00:05:46 -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 d132sm6527348pfd.61.2019.06.05.00.05.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jun 2019 00:05:45 -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 , Cory Tusar , Chris Healy , Lucas Stach , linux-kernel@vger.kernel.org Subject: [PATCH v3 15/15] drm/bridge: tc358767: Replace magic number in tc_main_link_enable() Date: Wed, 5 Jun 2019 00:05:07 -0700 Message-Id: <20190605070507.11417-16-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190605070507.11417-1-andrew.smirnov@gmail.com> References: <20190605070507.11417-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: 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 41a976dff13b..cf38f943e656 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -893,7 +893,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