Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1119216pxv; Fri, 25 Jun 2021 06:01:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4HuvlzJqp3JgdKXH6wWlP+264xrzuxXmE6NLXjUZQzC2g95CDZky7nhkc3BsscXuhIplF X-Received: by 2002:a17:907:3e88:: with SMTP id hs8mr10544490ejc.96.1624626080509; Fri, 25 Jun 2021 06:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624626080; cv=none; d=google.com; s=arc-20160816; b=IudHUg2qA89UkgYn+YJrQNsovl3NXxcsJT34rVyJd9+E5ob7s/kLN8bKWa+aRU8XOT yZx3ndg5a0cW4ps7WbgUFMwoFXIKucN9KaEcjwRN415BUv//wswN0SSOnnW5XWyWRky0 YG8kgHxEfymGieBKrTx/L3FV3evhYLb6fi/YS8/fTtK/ABUwJeOz8KPNmVacBmf1euip KLw35+yGZ6cWzA1sG5B/APVZGDtyCw+OjozxhJUo64Ul8w05FlJmoKtmK5ey+mcFUhBC ZlGlX4CiBrUG4L64QUjPKPVBXCM8diXeYwr9AXAksx4RuZojvCjSg5AMxMfv8X5WDM0+ CnQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qHX/9wNBaXqWrHoWpCifos9MUC5v1OCp/1sfaENdpVM=; b=H17wfgQvJIWAR7AhQv1XtVYD296fUay6k2bjvlr/gSpSKKy5KresvNwA05NnYVG7+u si3FrH7Ec5ZExOvpwZzxYItzkyBsqcKl4lRswUIu2hxKxJEzNTlsjxO1jDm5Pl4A7/c7 Ia1xr+r5JAt9pxAxkxlcyBh60whtL5A1eOSK9tCdBtCTnkHxO1RmRcI8AIpich75tzXO SqLrcT2ZFPojiQtqqFp5y/DcWm3+cXSTZVSGud8fyxyyjWWRU/XvxKP1z0LNF1qQBU6y NP+Rl42lKOcsCoCpLKZ4yZfRF2JKynu+aTp5J6glfE2KrEkxupz3UEoOM5U20mOfzsAD BVHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si5954113edz.253.2021.06.25.06.00.56; Fri, 25 Jun 2021 06:01:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231899AbhFYNCH (ORCPT + 99 others); Fri, 25 Jun 2021 09:02:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231672AbhFYNBl (ORCPT ); Fri, 25 Jun 2021 09:01:41 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4C58C0611BD for ; Fri, 25 Jun 2021 05:59:17 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:1476:ce84:e216:add8]) by xavier.telenet-ops.be with bizsmtp id MQzD250022B1U9901QzDdq; Fri, 25 Jun 2021 14:59:14 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lwlQO-003TMM-GD; Fri, 25 Jun 2021 14:59:12 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1lwlQN-004sR1-ML; Fri, 25 Jun 2021 14:59:11 +0200 From: Geert Uytterhoeven To: Robin van der Gracht , Rob Herring , Miguel Ojeda , Paul Burton , Greg Kroah-Hartman , Pavel Machek Cc: devicetree@vger.kernel.org, linux-leds@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 10/18] auxdisplay: ht16k33: Use HT16K33_FB_SIZE in ht16k33_initialize() Date: Fri, 25 Jun 2021 14:58:54 +0200 Message-Id: <20210625125902.1162428-11-geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210625125902.1162428-1-geert@linux-m68k.org> References: <20210625125902.1162428-1-geert@linux-m68k.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the existing HT16K33_FB_SIZE definition instead of open-coding the same calculation using an hardcoded value. While at it, restore reverse Christmas tree variable declaration order. Signed-off-by: Geert Uytterhoeven Acked-by: Robin van der Gracht --- v2: - Add Acked-by. --- drivers/auxdisplay/ht16k33.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/auxdisplay/ht16k33.c b/drivers/auxdisplay/ht16k33.c index 2b630e194570f6e5..99daf1974980b435 100644 --- a/drivers/auxdisplay/ht16k33.c +++ b/drivers/auxdisplay/ht16k33.c @@ -168,9 +168,9 @@ static void ht16k33_fb_update(struct work_struct *work) static int ht16k33_initialize(struct ht16k33_priv *priv) { + uint8_t data[HT16K33_FB_SIZE]; uint8_t byte; int err; - uint8_t data[HT16K33_MATRIX_LED_MAX_COLS * 2]; /* Clear RAM (8 * 16 bits) */ memset(data, 0, sizeof(data)); -- 2.25.1