projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51124a3
)
ASoC: mchp-pdmc: avoid casting to/from void pointer
author
Claudiu Beznea
<claudiu.beznea@microchip.com>
Wed, 1 Mar 2023 11:38:05 +0000
(13:38 +0200)
committer
Mark Brown
<broonie@kernel.org>
Sun, 5 Mar 2023 23:37:45 +0000
(23:37 +0000)
Do not cast to and from void pointer. There is no need for this.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link:
https://lore.kernel.org/r/20230301113807.24036-7-claudiu.beznea@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/mchp-pdmc.c
patch
|
blob
|
history
diff --git
a/sound/soc/atmel/mchp-pdmc.c
b/sound/soc/atmel/mchp-pdmc.c
index 853a7adfd654c84d71b017095a44d3faab082c18..81bfa98fd5165f5445dc17740f82d9caf0750d8d 100644
(file)
--- a/
sound/soc/atmel/mchp-pdmc.c
+++ b/
sound/soc/atmel/mchp-pdmc.c
@@
-783,7
+783,7
@@
static struct snd_soc_dai_driver mchp_pdmc_dai = {
/* PDMC interrupt handler */
static irqreturn_t mchp_pdmc_interrupt(int irq, void *dev_id)
{
- struct mchp_pdmc *dd =
(struct mchp_pdmc *)
dev_id;
+ struct mchp_pdmc *dd = dev_id;
u32 isr, msr, pending;
irqreturn_t ret = IRQ_NONE;
@@
-1077,7
+1077,7
@@
static int mchp_pdmc_probe(struct platform_device *pdev)
}
ret = devm_request_irq(dev, irq, mchp_pdmc_interrupt, 0,
- dev_name(&pdev->dev),
(void *)
dd);
+ dev_name(&pdev->dev), dd);
if (ret < 0) {
dev_err(dev, "can't register ISR for IRQ %u (ret=%i)\n",
irq, ret);