Re: [PATCH v7 10/12] media: tw9900: add S-Video input and progressive source detection
From: Markus Elfring
Date: Wed Nov 25 2026 - 09:38:35 EST
…
> +++ b/drivers/media/i2c/tw9900.c
…
> +static int tw9900_s_routing(struct v4l2_subdev *sd, u32 input, u32 output,
> + u32 config)
> +{
…
> + mutex_lock(&tw9900->mutex);
> + ret = tw9900_apply_input(tw9900);
> + mutex_unlock(&tw9900->mutex);
> +
> + pm_runtime_put_autosuspend(&tw9900->client->dev);
> +
> + return ret;
> +}
…
Under which circumstances would you become interested to apply a macro call
like “scoped_guard(mutex, &tw9900->mutex)”?
https://elixir.bootlin.com/linux/v7.4-rc1/source/include/linux/cleanup.h#L325-L328
Regards,
Markus