[PATCH v2 06/13] soc: synaptics: add SL2610 system controller support

Krzysztof Kozlowski krzk at kernel.org
Mon Nov 23 02:31:42 PST 2026


On Sun, Nov 15, 2026 at 06:23:45PM +0800, Jisheng Zhang wrote:

> +static const struct sl2610_syscon_data sl2610_mcu_data = {
> +	.cells = sl2610_mcu_cells,
> +	.num_cells = ARRAY_SIZE(sl2610_mcu_cells),
> +};
> +
> +static const struct sl2610_syscon_data sl2610_avio_data = {
> +	.cells = sl2610_avio_cells,
> +	.num_cells = ARRAY_SIZE(sl2610_avio_cells),
> +};
> +
> +static const struct sl2610_syscon_data sl2610_cpu_data = {
> +	.cells = sl2610_cpu_cells,
> +	.num_cells = ARRAY_SIZE(sl2610_cpu_cells),

That's just MFD driver, so should be in MFD, no? Why placing standard
MFD code - nothing soc specific - in the soc directory?


> +};
> +
> +static int sl2610_syscon_probe(struct platform_device *pdev)
> +{
> +	const struct sl2610_syscon_data *data = device_get_match_data(&pdev->dev);
> +
> +	return devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID_AUTO,
> +				    data->cells, data->num_cells, NULL, 0, NULL);
> +}

Best regards,
Krzysztof




More information about the linux-arm-kernel mailing list