diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-07-07 05:41:04 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-07-27 10:13:25 +0300 |
commit | a6e3bb0288e1112d03f6bdea68c18d87e6683a03 (patch) | |
tree | f1f17ff637d8a2d1c81ae20a913f765f2f10f022 | |
parent | 763c43f6a03c1565ceb1045889a621ed6c54784d (diff) | |
download | linux-a6e3bb0288e1112d03f6bdea68c18d87e6683a03.tar.xz |
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>
-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, }, |