Re: [PATCH 2/2] ASoC: cs35l56: Use standard SoundWire regmap implementation
From: Mark Brown
Date: Tue May 19 2026 - 06:39:26 EST
On Mon, May 18, 2026 at 02:09:43PM +0100, Richard Fitzgerald wrote:
> Use the regmap_sdw implementation for SoundWire instead of
> re-implementing the low-level bus transactions in cs35l56-sdw.c
> - cs35l56->base.regmap = devm_regmap_init(dev, &cs35l56_regmap_bus_sdw,
> - peripheral, regmap_config);
> + /* Low-level regmap to transfer read/writes over SoundWire bus */
> + cs35l56->sdw_bus_regmap = devm_regmap_init_sdw(peripheral, &cs35l56_sdw_bus_regmap);
> + if (IS_ERR(cs35l56->sdw_bus_regmap)) {
> + ret = PTR_ERR(cs35l56->sdw_bus_regmap);
> + return dev_err_probe(dev, ret, "Failed to allocate bus register map\n");
> + }
This means an update is needed to select REGMAP_SOUNDWIRE instead of
REGMAP.
Attachment:
signature.asc
Description: PGP signature