diff options
| author | Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> | 2026-09-25 17:10:44 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-29 12:50:03 +0100 |
| commit | a60f1ac41fe0a2ea83f57ce252caf6f08ae48d62 (patch) | |
| tree | 246ff1a5dbba23c63e010c99b3f4cd88fb70f2c3 /scripts/Makefile.thinlto | |
| parent | 0985313a2a9d2e84d6a6b1041c88b5c57ee46dfa (diff) | |
| download | linux-a60f1ac41fe0a2ea83f57ce252caf6f08ae48d62.tar.gz linux-a60f1ac41fe0a2ea83f57ce252caf6f08ae48d62.zip | |
ASoC: SDCA: expose class SoundWire probe/remove as library
Split the internal class_sdw_probe/class_sdw_remove functions into
caller-friendly library helpers:
sdca_class_probe(sdw, drv)
sdca_class_remove(drv)
The class_sdw_probe/class_sdw_remove callbacks of the built-in
class_sdw_driver are now thin wrappers that allocate a bare
sdca_class_drv, stash it in drvdata, and defer to the exported
helpers.
The exported sdca_class_probe() takes a caller-owned struct
sdca_class_drv * so codec-specific SoundWire drivers can embed the
class state in their own priv struct, own dev_set_drvdata() themselves,
and avoid a second allocation. No functional change for the built-in
driver.
This lays the groundwork for codec-specific SDCA SoundWire drivers
that want to compose the class-side probe with their own quirks; the
next patches add the class_ops mechanism on top.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260925161049.758913-4-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
