diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2021-10-19 17:45:10 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2021-10-22 00:36:29 +0300 |
commit | fb61e137c004c160f772461ec39953d54f5c9aaf (patch) | |
tree | 498f1a8c3660721a1834bd2235904abde5bbc774 /drivers/auxdisplay | |
parent | 840fe258332544aa7321921e1723d37b772af7a9 (diff) | |
download | linux-fb61e137c004c160f772461ec39953d54f5c9aaf.tar.xz |
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.c | 2 |
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)); |