Commit af37511
firmware: cs_dsp: Don't require client to provide a struct cs_dsp_client_ops
A client of cs_dsp does not necessarily need to implement any of the
optional callbacks in struct cs_dsp_client_ops, so allow the client_ops
pointer to be NULL.
This has been done by pointing client_ops at a default empty
cs_dsp_client_ops. It keeps the code cleaner by avoiding having to add
double nested NULL checks everywhere one of these callbacks is called.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20251128102132.1575177-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent a76e1d9 commit af37511
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2329 | 2329 | | |
2330 | 2330 | | |
2331 | 2331 | | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
2332 | 2335 | | |
2333 | 2336 | | |
2334 | 2337 | | |
| |||
2342 | 2345 | | |
2343 | 2346 | | |
2344 | 2347 | | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
2345 | 2351 | | |
2346 | 2352 | | |
2347 | 2353 | | |
| |||
0 commit comments