linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: Fix function return type
@ 2018-12-04 18:33 Agrawal, Akshu
  2018-12-04 18:36 ` [PATCH 2/2] ASoC: DA7219: Implement error check on reg read and write Agrawal, Akshu
  0 siblings, 1 reply; 8+ messages in thread
From: Agrawal, Akshu @ 2018-12-04 18:33 UTC (permalink / raw)
  Cc: Agrawal, Akshu, djkurtz, Deucher, Alexander, Adam.Thomson,
	Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
	open list

Function returns -1 on error and the return type
should be int.

Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
---
 include/sound/soc.h | 2 +-
 sound/soc/soc-io.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/sound/soc.h b/include/sound/soc.h
index 8ec1de8..591d743 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1341,7 +1341,7 @@ static inline int snd_soc_component_cache_sync(
 /* component IO */
 int snd_soc_component_read(struct snd_soc_component *component,
 	unsigned int reg, unsigned int *val);
-unsigned int snd_soc_component_read32(struct snd_soc_component *component,
+int snd_soc_component_read32(struct snd_soc_component *component,
 				      unsigned int reg);
 int snd_soc_component_write(struct snd_soc_component *component,
 	unsigned int reg, unsigned int val);
diff --git a/sound/soc/soc-io.c b/sound/soc/soc-io.c
index 1ff9175..d08f5b1 100644
--- a/sound/soc/soc-io.c
+++ b/sound/soc/soc-io.c
@@ -38,7 +38,7 @@ int snd_soc_component_read(struct snd_soc_component *component,
 }
 EXPORT_SYMBOL_GPL(snd_soc_component_read);
 
-unsigned int snd_soc_component_read32(struct snd_soc_component *component,
+int snd_soc_component_read32(struct snd_soc_component *component,
 				      unsigned int reg)
 {
 	unsigned int val;
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-12-06 19:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-04 18:33 [PATCH 1/2] ASoC: Fix function return type Agrawal, Akshu
2018-12-04 18:36 ` [PATCH 2/2] ASoC: DA7219: Implement error check on reg read and write Agrawal, Akshu
2018-12-04 21:16   ` Adam Thomson
2018-12-05  4:26     ` Agrawal, Akshu
2018-12-05 10:21       ` Adam Thomson
2018-12-05 11:28         ` Mark Brown
2018-12-05 17:50           ` Daniel Kurtz
2018-12-06 19:56             ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).