Message ID | 20240430115438.29134-1-wsa+renesas@sang-engineering.com (mailing list archive) |
---|---|
Headers | show |
Series | ASoC: use 'time_left' instead of 'timeout' with wait_for_*() functions | expand |
On Tue, Apr 30, 2024 at 01:54:33PM +0200, Wolfram Sang wrote: > There is a confusing pattern in the kernel to use a variable named 'timeout' to > store the result of wait_for_*() functions 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 > obvious and self explaining. > > This is part of a tree-wide series. The rest of the patches can be found here > (some parts may still be WIP): > > git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/time_left > > Because these patches are generated, I audit them before sending. This is why I > will send series step by step. Build bot is happy with these patches, though. > No functional changes intended. > > Wolfram Sang (4): > ASoC: codecs: wm8962: use 'time_left' variable with > wait_for_completion_timeout() > ASoC: codecs: wm8993: use 'time_left' variable with > wait_for_completion_timeout() > ASoC: codecs: wm8994: use 'time_left' variable with > wait_for_completion_timeout() > ASoC: codecs: wm8996: use 'time_left' variable with > wait_for_completion_timeout() > > sound/soc/codecs/wm8962.c | 12 ++++++------ > sound/soc/codecs/wm8993.c | 12 ++++++------ > sound/soc/codecs/wm8994.c | 8 ++++---- > sound/soc/codecs/wm8996.c | 14 +++++++------- > 4 files changed, 23 insertions(+), 23 deletions(-) > All look good to me. Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Thanks, Charles
On Tue, 30 Apr 2024 13:54:33 +0200, Wolfram Sang wrote: > There is a confusing pattern in the kernel to use a variable named 'timeout' to > store the result of wait_for_*() functions 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 > obvious and self explaining. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/4] ASoC: codecs: wm8962: use 'time_left' variable with wait_for_completion_timeout() commit: cfcd957e63506273dc54f34b320172c8709244c7 [2/4] ASoC: codecs: wm8993: use 'time_left' variable with wait_for_completion_timeout() commit: 0800660d8c59539b628f5a6646bb63091d58152f [3/4] ASoC: codecs: wm8994: use 'time_left' variable with wait_for_completion_timeout() commit: 19c70b4668306632d3cbbecdf5fea98b528e873e [4/4] ASoC: codecs: wm8996: use 'time_left' variable with wait_for_completion_timeout() commit: 4e1f953a4a447b5e001655b453505c4c15904c61 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark