Re: [PATCH v2 10/11] mfd: motorola-cpcap: diverge configuration per-board

From: Andy Shevchenko

Date: Sun Feb 08 2026 - 07:55:08 EST


On Fri, Feb 06, 2026 at 07:28:44PM +0200, Svyatoslav Ryhel wrote:
> MFD have rigid subdevice structure which does not allow flexible dynamic
> subdevice linking. Address this by diverging CPCAP subdevice composition
> to take into account board specific configuration.
>
> Create a common default subdevice composition, rename existing subdevice
> composition into cpcap_mapphone_mfd_devices since it targets mainly
> Mapphone board.

...

> -static const struct of_device_id cpcap_of_match[] = {
> - { .compatible = "motorola,cpcap", },
> - { .compatible = "st,6556002", },
> - {},
> -};
> -MODULE_DEVICE_TABLE(of, cpcap_of_match);
> -
> static const struct spi_device_id cpcap_spi_ids[] = {
> { .name = "cpcap", },
> { .name = "6556002", },
> + { .name = "mapphone-cpcap", },
> {},
> };

This also needs to be converted to use driver data.

> MODULE_DEVICE_TABLE(spi, cpcap_spi_ids);

--
With Best Regards,
Andy Shevchenko