video: fbdev: via: remove VLA usage
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 12 Mar 2018 16:06:55 +0000 (17:06 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 12 Mar 2018 16:06:55 +0000 (17:06 +0100)
commit2c81ee0a28c085582a84f3822e8a22e028a909d0
tree794625cc6801450ba4b7781d1a0cd4a7008e338b
parentdf7a84a8baf1caf01ded61356b68d5d978b37789
video: fbdev: via: remove VLA usage

In preparation to enabling -Wvla, remove VLA usage.

Also, fixed as part of the directive to remove all VLAs from
the kernel: https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/via/via_aux_sii164.c
drivers/video/fbdev/via/via_aux_vt1631.c
drivers/video/fbdev/via/via_aux_vt1632.c
drivers/video/fbdev/via/via_aux_vt1636.c