Skip to content

Commit

Permalink
mfd: rave-sp: Fix incorrectly specified checksum type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrey Smirnov authored and Lee Jones committed Jul 27, 2018
1 parent 763c43f commit a6e3bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/rave-sp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit a6e3bb0

Please sign in to comment.