Commit 465f6aa
dai-zephyr: enforce type check for dai_get_device()
Allow the compiler to issue a warning/error if the wrong DAI type enum
is passed as a parameter, as it is easy to incorrectly use Zephyr's
enum dai_type instead of the proper SOF enum sof_ipc_dai_type.
Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>1 parent 5a286c8 commit 465f6aa
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
308 | | - | |
| 309 | + | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
0 commit comments