All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFT] ASoC: wm8904: Make undocumented registers non-readable
@ 2015-10-17  3:11 Axel Lin
  2015-10-20  9:20 ` Charles Keepax
  2015-11-18 18:09 ` Applied "ASoC: wm8904: Make undocumented registers non-readable" to the asoc tree Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2015-10-17  3:11 UTC (permalink / raw)
  To: Mark Brown; +Cc: Charles Keepax, patches, Liam Girdwood, alsa-devel

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
I think the intention of wm8904_readable_register is to return false for
undocumented registers, but current code returns true for all cases in
wm8904_readable_register.
Please review if this patch is correct or not.
Thanks.

 sound/soc/codecs/wm8904.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c
index b783743..f48b9cb 100644
--- a/sound/soc/codecs/wm8904.c
+++ b/sound/soc/codecs/wm8904.c
@@ -312,7 +312,7 @@ static bool wm8904_readable_register(struct device *dev, unsigned int reg)
 	case WM8904_FLL_NCO_TEST_1:
 		return true;
 	default:
-		return true;
+		return false;
 	}
 }
 
-- 
2.1.4

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

end of thread, other threads:[~2015-11-18 18:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-17  3:11 [PATCH RFT] ASoC: wm8904: Make undocumented registers non-readable Axel Lin
2015-10-20  9:20 ` Charles Keepax
2015-11-18 18:09 ` Applied "ASoC: wm8904: Make undocumented registers non-readable" to the asoc tree Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.