Re: [PATCH v2 06/13] soc: synaptics: add SL2610 system controller support
From: Krzysztof Kozlowski
Date: Mon Nov 23 2026 - 05:31:52 EST
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