Skip to contentSkip to conversation

thermal: ti-soc-thermal: Drop comma after SoC match table sentinel

PATCH RESEND Applied Geert Uytterhoeven 3 participants 3 messages Nov 21, 2022 – Dec 4, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 thermal: ti-soc-thermal: Drop comma after SoC match table sentinel

It does not make sense to have a comma after a sentinel, as any new elements must be added before the sentinel.

---
 drivers/thermal/ti-soc-thermal/ti-bandgap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/ti-soc-thermal/ti-bandgap.c +1 -1
index 53d409c80753c25e..576c2115df85da72 100644
@@ -877,7 +877,7 @@ static struct ti_bandgap *ti_bandgap_build(struct platform_device *pdev)
  */
 static const struct soc_device_attribute soc_no_cpu_notifier[] = {
 	{ .machine = "OMAP4430" },
-	{ /* sentinel */ },
+	{ /* sentinel */ }
 };
 
 /***   Device driver call backs   ***/
Signature · 1 line
2.25.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Geert Uytterhoeven

It does not make sense to have a comma after a sentinel, as any new elements must be added before the sentinel.

Quoted 19 lines
---
  drivers/thermal/ti-soc-thermal/ti-bandgap.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/ti-soc-thermal/ti-bandgap.c +1 -1
index 53d409c80753c25e..576c2115df85da72 100644
@@ -877,7 +877,7 @@ static struct ti_bandgap *ti_bandgap_build(struct platform_device *pdev)
   */
  static const struct soc_device_attribute soc_no_cpu_notifier[] = {
  	{ .machine = "OMAP4430" },
-	{ /* sentinel */ },
+	{ /* sentinel */ }
  };
 
  /***   Device driver call backs   ***/
#2 lore raw
In reply to Geert Uytterhoeven
Quoted 5 lines · Geert Uytterhoeven

It does not make sense to have a comma after a sentinel, as any new elements must be added before the sentinel.

---

Applied, thanks

Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog