linux-yocto/sound/aoa/soundbus
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
..
i2sbus ALSA: aoa: soundbus: i2sbus: pcm: use 'time_left' variable with wait_for_completion_timeout() 2024-05-08 18:15:06 +02:00
core.c ALSA: aoa: make soundbus_bus_type const 2024-02-15 13:48:03 +01:00
Kconfig
Makefile
soundbus.h ALSA: aoa: Replace asm/prom.h with explicit includes 2023-10-06 11:11:40 +02:00
sysfs.c ALSA: aoa: Replace sprintf() with sysfs_emit() 2022-08-02 16:03:42 +02:00