Skip to content

Commit c022f41

Browse files
Jaska Uimonencarlescufi
Jaska Uimonen
authored andcommitted
drivers: dai: intel: dmic: fix irq argument cast
The argument to the dmic irq is of type "struct device *" and dmic data is actually part of it, thus make the cast correctly. Signed-off-by: Jaska Uimonen <[email protected]>
1 parent 7c6eb24 commit c022f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dai/intel/dmic/dmic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static void dai_dmic_stop_fifo_packers(struct dai_intel_dmic *dmic,
256256
*/
257257
static void dai_dmic_irq_handler(const void *data)
258258
{
259-
struct dai_intel_dmic *dmic = (struct dai_intel_dmic *) data;
259+
struct dai_intel_dmic *dmic = ((struct device *)data)->data;
260260
uint32_t val0;
261261
uint32_t val1;
262262

0 commit comments

Comments
 (0)