spi: offload: check for match callback when a trigger is being registered
Subsystems (2)
PATCH v2 1/1 spi: offload: check for match callback when a trigger is being registered
Make match a required callback when a new trigger is being registered, this allows that other functions like spi_offload_trigger_get() could safely invoke the callback when it is required
In v2:
- improve readability of the condition
--- drivers/spi/spi-offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-offload.c +1 -1
@@ -434,7 +434,7 @@ int devm_spi_offload_trigger_register(struct device *dev, {struct spi_offload_trigger *trigger; -if (!info->fwnode || !info->ops) +if (!info->fwnode || !info->ops || !info->ops->match)return -EINVAL ; trigger =kzalloc (sizeof (*trigger),GFP_KERNEL );
Signature · 1 line
2.43.0
Quoted 9 lines · Andres Urian Florez
Make match a required callback when a new trigger is being registered, this allows that other functions like
spi_offload_trigger_get()could safely invoke the callback when it is requiredIn v2:
- improve readability of the conditionSigned-off-by Andres Urian Florez <[email protected]>---
Mark Brown
maintainerQuoted 8 lines · Andres Urian Florez
Make match a required callback when a new trigger is being registered, this allows that other functions like
spi_offload_trigger_get()could safely invoke the callback when it is requiredIn v2:
- improve readability of the condition[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/1] spi: offload: check for match callback when a trigger is being registered
commit: fcab1637bb115b3b7bbc600a6d019b785653f2d5
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