linux/drivers/media/pci/solo6x10
Wolfram Sang b09b6f26ad media: solo6x10: 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>
Acked-by: Ismael Luceno <ismael@iodev.co.uk>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-08-09 07:56:39 +02:00
..
Kconfig
Makefile
solo6x10-core.c media: solo6x10: Use devm functions 2024-04-15 13:42:38 +02:00
solo6x10-disp.c
solo6x10-eeprom.c
solo6x10-enc.c
solo6x10-g723.c
solo6x10-gpio.c
solo6x10-i2c.c
solo6x10-jpeg.h
solo6x10-offsets.h
solo6x10-p2m.c media: solo6x10: use 'time_left' variable with wait_for_completion_timeout() 2024-08-09 07:56:39 +02:00
solo6x10-regs.h
solo6x10-tw28.c
solo6x10-tw28.h
solo6x10-v4l2-enc.c
solo6x10-v4l2.c
solo6x10.h