firmware: cs_dsp: Add test cases for client_ops == NULL
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Fri, 28 Nov 2025 10:21:32 +0000 (10:21 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 28 Nov 2025 11:47:56 +0000 (11:47 +0000)
commit479b1f8d416501cc3c18b743b1cf63776934ada9
tree21e95814ae13b055d700056068261a4478fe6100
parentaf37511305c0da1d151cc9a1ee6077c2cbde4f1d
firmware: cs_dsp: Add test cases for client_ops == NULL

Add test cases for the client not providing a pointer to a
struct cs_dsp_client_ops. This proves that it is safe for the client
to leave the client_ops pointer at NULL if it does not need to
implement any of the callbacks.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20251128102132.1575177-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/firmware/cirrus/test/cs_dsp_test_callbacks.c