Re: [PATCH v4 3/5] thermal: renesas: rzg3e: Add thermal driver for the Renesas RZ/G3E SoC
From: Markus Elfring
Date: Sat Mar 29 2025 - 09:02:05 EST
…
> +++ b/drivers/thermal/renesas/rzg3e_thermal.c
> @@ -0,0 +1,445 @@
…
> +static irqreturn_t rzg3e_thermal_adc_irq(int irq, void *dev_id)
> +{
…
> + int new_temp = temp_val * MILLIDEGREE_PER_DEGREE;
> +
> + scoped_guard(spinlock_irqsave, &priv->reg_lock) {
> + priv->cached_temp = new_temp;
> + }
> +
> + complete(&priv->conv_complete);
…
Are curly brackets really relevant for such a “scoped guard”?
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?h=v6.14#n197
Regards,
Markus