Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4057487pxf; Tue, 23 Mar 2021 01:10:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDh1bmvApx7SYlOyE5lWKDojoYtO9BRgKAFewwowJGP4xzPDaISO9XRN8Xf1lEpdPDWKab X-Received: by 2002:a17:907:7745:: with SMTP id kx5mr3695943ejc.3.1616487016688; Tue, 23 Mar 2021 01:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616487016; cv=none; d=google.com; s=arc-20160816; b=onTOBkFYgttyy/xbTdXRR8vp9DSxkLmnB0Jmy5dBYKXiJJS+/Xc5dG+OrvRNymj00I SruYzoy9GVSlfjUaEouAGOHmJiiTxv0Gatnf0TeTc2AnXSwEOLVBn6wLbhJJcnm1XfIP 5v9TXmpIHQtBE55JSPvfi+N43e6PZESvnVEOgb0xv5pL6GCEvDNyKKAAPUeKJcA9vZNg 4FZFlI0OCjKzCyfuvYf92oYIMhf374Otfs5YoTAxZG/KlHU8cmOWnQrEGyrfWbE6r2rp HfWFAvH+Nh9nMY8gYxjUO+qh+2FwXQ+7XA4DVYDch56e1W7c+KRrtpNeveVi7MiGfb7C ESFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :message-id:user-agent:references:in-reply-to:reply-to:subject:cc:to :from:date:mime-version; bh=J7Kz25i63xumf7fpEixBcNFAJ9UxSG4ch2sOBkRAKWM=; b=BcaH6KLy/abG30aTaQ7zW87wUbSIXYA7xVPSlGdGgMov+iImOIhkaOzAAW2ga/hlGT xjObIqre1EPQgw7w3bMYxqGBogyfQLJNcYhSpSRCAiqeC3Q+N58XwPYcMEBMCYbT1O5L NuwOfnow0X9dtnzziRnr1B61cOLA3zBkKu4CmcTQvKxHzQhh4NrfwuCU+s7oUulIXXkV U5cdPHHdRaQB4JaaBDNCQZJ08rJ1lH5d8cwRWLDv6yDCJPGdK2zrDceISLOYkBQAOCdy +P0Dcch/Vnn3AkK6AgRe1Sq5HGnRSNWAJ5MWdEgyXf+/OxGs5B3OIUyNwf6dVR9IRMKJ +d3w== 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 i6si13359598edu.313.2021.03.23.01.09.54; Tue, 23 Mar 2021 01:10:16 -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 S229632AbhCWII6 (ORCPT + 99 others); Tue, 23 Mar 2021 04:08:58 -0400 Received: from protonic.xs4all.nl ([83.163.252.89]:60038 "EHLO protonic.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbhCWIIi (ORCPT ); Tue, 23 Mar 2021 04:08:38 -0400 X-Greylist: delayed 516 seconds by postgrey-1.27 at vger.kernel.org; Tue, 23 Mar 2021 04:08:37 EDT Received: from fiber.protonic.nl (edge2.prtnl [192.168.1.170]) by sparta.prtnl (Postfix) with ESMTP id D1B4D44A022C; Tue, 23 Mar 2021 08:59:59 +0100 (CET) MIME-Version: 1.0 Date: Tue, 23 Mar 2021 08:59:59 +0100 From: robin To: Geert Uytterhoeven Cc: Rob Herring , Miguel Ojeda , Paul Burton , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/17] auxdisplay: ht16k33: Use HT16K33_FB_SIZE in ht16k33_initialize() Reply-To: robin@protonic.nl In-Reply-To: <20210322144848.1065067-10-geert@linux-m68k.org> References: <20210322144848.1065067-1-geert@linux-m68k.org> <20210322144848.1065067-10-geert@linux-m68k.org> User-Agent: Roundcube Webmail/1.4.8 Message-ID: <7e5eb8c54d7dd196ea071b7f9c31c2ce@protonic.nl> X-Sender: robin@protonic.nl Organization: Protonic Holland Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-03-22 15:48, Geert Uytterhoeven wrote: > 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 > --- > 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 1e69cc6d21a0dca2..6d39f12054618fa5 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)); Acked-by: Robin van der Gracht