summaryrefslogtreecommitdiffstats
path: root/drivers/auxdisplay
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2021-10-19 16:45:10 +0200
committerMiguel Ojeda <ojeda@kernel.org>2021-10-21 23:36:29 +0200
commitfb61e137c004c160f772461ec39953d54f5c9aaf (patch)
tree498f1a8c3660721a1834bd2235904abde5bbc774 /drivers/auxdisplay
parent840fe258332544aa7321921e1723d37b772af7a9 (diff)
downloadlinux-stable-fb61e137c004c160f772461ec39953d54f5c9aaf.tar.gz
linux-stable-fb61e137c004c160f772461ec39953d54f5c9aaf.tar.bz2
linux-stable-fb61e137c004c160f772461ec39953d54f5c9aaf.zip
auxdisplay: ht16k33: Use HT16K33_FB_SIZE in ht16k33_initialize()
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 <geert@linux-m68k.org> Acked-by: Robin van der Gracht <robin@protonic.nl> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/auxdisplay')
-rw-r--r--drivers/auxdisplay/ht16k33.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/auxdisplay/ht16k33.c b/drivers/auxdisplay/ht16k33.c
index ed5808349990..fed2f8bd2d27 100644
--- a/drivers/auxdisplay/ht16k33.c
+++ b/drivers/auxdisplay/ht16k33.c
@@ -168,9 +168,9 @@ requeue:
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));