diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-07-07 04:41:04 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-07-27 09:13:25 +0200 |
commit | a6e3bb0288e1112d03f6bdea68c18d87e6683a03 (patch) | |
tree | f1f17ff637d8a2d1c81ae20a913f765f2f10f022 /drivers/mfd/rave-sp.c | |
parent | mfd: rave-sp: Remove unused defines (diff) | |
download | linux-a6e3bb0288e1112d03f6bdea68c18d87e6683a03.tar.xz linux-a6e3bb0288e1112d03f6bdea68c18d87e6683a03.zip |
mfd: rave-sp: Fix incorrectly specified checksum type
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>
Diffstat (limited to 'drivers/mfd/rave-sp.c')
-rw-r--r-- | drivers/mfd/rave-sp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/rave-sp.c b/drivers/mfd/rave-sp.c index dfa4f5f1c376..a90ec4986b22 100644 --- a/drivers/mfd/rave-sp.c +++ b/drivers/mfd/rave-sp.c @@ -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, }, |