OSDN Git Service

mfd: rave-sp: Fix incorrectly specified checksum type
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Sat, 7 Jul 2018 02:41:04 +0000 (19:41 -0700)
committerLee Jones <lee.jones@linaro.org>
Fri, 27 Jul 2018 07:13:25 +0000 (08:13 +0100)
RAVE SP firmware covered by "legacy" variant uses 16-bit CCITT
checksum algorithm. Change the code to correctly reflect that.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rave-sp.c

index dfa4f5f..a90ec49 100644 (file)
@@ -697,7 +697,7 @@ static const struct rave_sp_checksum rave_sp_checksum_ccitt = {
 };
 
 static const struct rave_sp_variant rave_sp_legacy = {
-       .checksum = &rave_sp_checksum_8b2c,
+       .checksum = &rave_sp_checksum_ccitt,
        .cmd = {
                .translate = rave_sp_default_cmd_translate,
        },