mfd: rave-sp: Remove VLA
authorKyle Spiers <ksspiers@google.com>
Fri, 27 Apr 2018 22:30:23 +0000 (15:30 -0700)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000 (09:21 +0100)
commit7169483ce4570bd2918cb7b1ab04c3e095a22713
tree6d733e984373eff7973cb484ae1d33e3e317bbe3
parentac1886165cd1201c5793099b6fbad1876bf98dfe
mfd: rave-sp: Remove VLA

As part of the effort to remove VLAs from the kernel[1], this creates
constants for the checksum lengths of CCITT and 8B2C and changes
crc_calculated to be the maximum size of a checksum.

https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Kyle Spiers <ksspiers@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rave-sp.c