Thread (24 messages) 24 messages, 3 authors, 12d ago

Re: [PATCH v2 07/14] iio: adc: stm32-adc: add support for stm32mp25

flat view

From: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Date: 2026-09-30 08:44:38
Also in: linux-devicetree, linux-iio, lkml

On 9/30/26 10:33, Andy Shevchenko wrote:
On Tue, Sep 29, 2026 at 06:48:28PM +0200, Fabrice Gasnier wrote:
quoted
On 9/24/26 23:01, Andy Shevchenko wrote:
quoted
On Wed, Sep 23, 2026 at 05:39:10PM +0200, Fabrice Gasnier wrote:
...
quoted
quoted
quoted
 		.compatible = "st,stm32mp13-adc-core",
 		.data = (void *)&stm32mp13_adc_priv_cfg
 	}, {
-	},
+		.compatible = "st,stm32mp25-adc-core",
+		.data = (void *)&stm32mp25_adc_priv_cfg
+	}, {
+	}
Same issue and now it's a regression from maintenance perspective: you added an
unnedeed churn that has to be handled from now on... TL;DR: do add trailing
commas to the non-terminator entries and remove trailing commas in the
terminator entries.
quoted
Do you wish I add a separate cleanup patch for existing match table ?
This can also fit into 100 chars line now:
This is, of course, is up to you, but my comment was solely against the
trailing comma removal.
quoted
static const struct of_device_id stm32_adc_of_match[] = {
	{ .compatible = "st,stm32f4-adc-core", .data = (void
*)&stm32f4_adc_priv_cfg, },
Here is actually the opposite, no inner trailing comma should be added as it's
a one-line entry.
Hi Andy,

Sorry if I'm a bit confused :-), just to be sure, the preferred style should be as below ?

static const struct of_device_id stm32_adc_of_match[] = {
	{ .compatible = "st,stm32f4-adc-core", .data = (void *)&stm32f4_adc_priv_cfg },
	{ .compatible = "st,stm32h7-adc-core", .data = (void *)&stm32h7_adc_priv_cfg },
	{ .compatible = "st,stm32mp1-adc-core",	.data = (void *)&stm32mp1_adc_priv_cfg },
	{ .compatible = "st,stm32mp13-adc-core", .data = (void *)&stm32mp13_adc_priv_cfg },
	{ }
};

Thanks,
Best Regards,
Fabrice
quoted
	{ .compatible = "st,stm32h7-adc-core", .data = (void
*)&stm32h7_adc_priv_cfg, },
	{ .compatible = "st,stm32mp1-adc-core",	.data = (void
*)&stm32mp1_adc_priv_cfg, },
	{ .compatible = "st,stm32mp13-adc-core", .data = (void
*)&stm32mp13_adc_priv_cfg, },
	{ }
};
quoted
quoted
quoted
 };
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help