projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aaecdc3
)
ASoC: mchp-spdifrx: use unsigned long to store clk_get_rate() value
author
Claudiu Beznea
<claudiu.beznea@microchip.com>
Mon, 30 Jan 2023 12:06:44 +0000
(14:06 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 30 Jan 2023 18:36:23 +0000
(18:36 +0000)
clk_get_rate() returns an unsigned long. Use a variable of type
unsigned long to store it.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link:
https://lore.kernel.org/r/20230130120647.638049-6-claudiu.beznea@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/mchp-spdifrx.c
patch
|
blob
|
history
diff --git
a/sound/soc/atmel/mchp-spdifrx.c
b/sound/soc/atmel/mchp-spdifrx.c
index
b81fc77
..
90b2fb3
100644
(file)
--- a/
sound/soc/atmel/mchp-spdifrx.c
+++ b/
sound/soc/atmel/mchp-spdifrx.c
@@
-764,8
+764,8
@@
static int mchp_spdifrx_rate_get(struct snd_kcontrol *kcontrol,
{
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
{
struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol);
struct mchp_spdifrx_dev *dev = snd_soc_dai_get_drvdata(dai);
+ unsigned long rate;
u32 val;
u32 val;
- int rate;
mutex_lock(&dev->mlock);
mutex_lock(&dev->mlock);