linux/sound/aoa
Wolfram Sang 222a596640 ALSA: aoa: soundbus: i2sbus: pcm: use 'time_left' variable with wait_for_completion_timeout()
There is a confusing pattern in the kernel to use a variable named 'timeout' to
store the result of wait_for_completion_timeout() causing patterns like:

	timeout = wait_for_completion_timeout(...)
	if (!timeout) return -ETIMEDOUT;

with all kinds of permutations. Use 'time_left' as a variable to make the code
self explaining.

Fix to the proper variable type 'unsigned long' while here.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20240430121028.30443-1-wsa+renesas@sang-engineering.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2024-05-08 18:15:06 +02:00
..
codecs ALSA: aoa: Replace asm/prom.h with explicit includes 2023-10-06 11:11:40 +02:00
core ALSA: Convert strlcpy to strscpy when return value is unused 2021-01-08 09:30:05 +01:00
fabrics ALSA: aoa: Replace with DEFINE_SIMPLE_DEV_PM_OPS() 2024-02-12 11:50:25 +01:00
soundbus ALSA: aoa: soundbus: i2sbus: pcm: use 'time_left' variable with wait_for_completion_timeout() 2024-05-08 18:15:06 +02:00
aoa-gpio.h ALSA: aoa: Replace asm/prom.h with explicit includes 2023-10-06 11:11:40 +02:00
aoa.h ALSA: aoa: Replace asm/prom.h with explicit includes 2023-10-06 11:11:40 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00