linux-stable/sound
Eric Biggers 9d4cafa5a0 ASoC: cros_ec_codec: use sha256() instead of open coding
Now that there's a function that calculates the SHA-256 digest of a
buffer in one step, use it instead of sha256_init() + sha256_update() +
sha256_final().

Also simplify the code by inlining calculate_sha256() into its caller
and switching a debug log statement to use %*phN instead of bin2hex().

Acked-by: Tzung-Bi Shih <tzungbi@google.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Cc: alsa-devel@alsa-project.org
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Cheng-Yi Chiang <cychiang@chromium.org>
Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Cc: Guenter Roeck <groeck@chromium.org>
Cc: Tzung-Bi Shih <tzungbi@google.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2020-07-16 21:49:05 +10:00
..
ac97
aoa treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
arm
atmel
core sound fixes for 5.8-rc1 2020-06-11 12:38:11 -07:00
drivers powerpc updates for 5.8 2020-06-05 12:39:30 -07:00
firewire Merge branch 'for-linus' into for-next 2020-05-28 10:08:50 +02:00
hda ASoC: Updates for v5.8 2020-06-01 20:26:07 +02:00
i2c
isa ALSA: es1688: Add the missed snd_card_free() 2020-06-03 11:40:55 +02:00
mips
oss
parisc
pci sound fixes for 5.8-rc1 2020-06-11 12:38:11 -07:00
pcmcia
ppc powerpc updates for 5.8 2020-06-05 12:39:30 -07:00
sh
soc ASoC: cros_ec_codec: use sha256() instead of open coding 2020-07-16 21:49:05 +10:00
sparc
spi
synth
usb ALSA: usb-audio: Manage auto-pm of all bundled interfaces 2020-06-08 19:34:49 +02:00
x86 treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c