All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: wm8731: Drop wm8731_writeable function
@ 2015-08-01  2:03 Axel Lin
  2015-08-01  2:04 ` [PATCH 2/2] ASoC: wm8753: Drop wm8753_writeable function Axel Lin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Axel Lin @ 2015-08-01  2:03 UTC (permalink / raw)
  To: Mark Brown; +Cc: Charles Keepax, patches, Liam Girdwood, alsa-devel

When .max_register is set and .writeable_reg is not implement, registers
between 0 and .max_register are writeable. This is the same as current
implementation of wm8731_writeable(), so just drop implementation for
.writeable_reg callback.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/codecs/wm8731.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
index c862232..ace8645 100644
--- a/sound/soc/codecs/wm8731.c
+++ b/sound/soc/codecs/wm8731.c
@@ -79,11 +79,6 @@ static bool wm8731_volatile(struct device *dev, unsigned int reg)
 	return reg == WM8731_RESET;
 }
 
-static bool wm8731_writeable(struct device *dev, unsigned int reg)
-{
-	return reg <= WM8731_RESET;
-}
-
 #define wm8731_reset(m)	regmap_write(m, WM8731_RESET, 0)
 
 static const char *wm8731_input_select[] = {"Line In", "Mic"};
@@ -655,7 +650,6 @@ static const struct regmap_config wm8731_regmap = {
 
 	.max_register = WM8731_RESET,
 	.volatile_reg = wm8731_volatile,
-	.writeable_reg = wm8731_writeable,
 
 	.cache_type = REGCACHE_RBTREE,
 	.reg_defaults = wm8731_reg_defaults,
-- 
2.1.0

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

* [PATCH 2/2] ASoC: wm8753: Drop wm8753_writeable function
  2015-08-01  2:03 [PATCH 1/2] ASoC: wm8731: Drop wm8731_writeable function Axel Lin
@ 2015-08-01  2:04 ` Axel Lin
  2015-08-05 12:30   ` Applied "ASoC: wm8753: Drop wm8753_writeable function" to the asoc tree Mark Brown
  2015-08-06 16:24   ` [PATCH 2/2] ASoC: wm8753: Drop wm8753_writeable function Charles Keepax
  2015-08-05 12:30 ` Applied "ASoC: wm8731: Drop wm8731_writeable function" to the asoc tree Mark Brown
  2015-08-06 16:24 ` [PATCH 1/2] ASoC: wm8731: Drop wm8731_writeable function Charles Keepax
  2 siblings, 2 replies; 6+ messages in thread
From: Axel Lin @ 2015-08-01  2:04 UTC (permalink / raw)
  To: Mark Brown; +Cc: Charles Keepax, patches, Liam Girdwood, alsa-devel

When .max_register is set and .writeable_reg is not implement, registers
between 0 and .max_register are writeable. This is the same as current
implementation of wm8753_writeable(), so just drop implementation for
.writeable_reg callback.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/codecs/wm8753.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c
index b5e50ff..ab1b6b8 100644
--- a/sound/soc/codecs/wm8753.c
+++ b/sound/soc/codecs/wm8753.c
@@ -138,11 +138,6 @@ static bool wm8753_volatile(struct device *dev, unsigned int reg)
 	return reg == WM8753_RESET;
 }
 
-static bool wm8753_writeable(struct device *dev, unsigned int reg)
-{
-	return reg <= WM8753_ADCTL2;
-}
-
 /* codec private data */
 struct wm8753_priv {
 	struct regmap *regmap;
@@ -1510,7 +1505,6 @@ static const struct regmap_config wm8753_regmap = {
 	.val_bits = 9,
 
 	.max_register = WM8753_ADCTL2,
-	.writeable_reg = wm8753_writeable,
 	.volatile_reg = wm8753_volatile,
 
 	.cache_type = REGCACHE_RBTREE,
-- 
2.1.0

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

* Applied "ASoC: wm8753: Drop wm8753_writeable function" to the asoc tree
  2015-08-01  2:04 ` [PATCH 2/2] ASoC: wm8753: Drop wm8753_writeable function Axel Lin
@ 2015-08-05 12:30   ` Mark Brown
  2015-08-06 16:24   ` [PATCH 2/2] ASoC: wm8753: Drop wm8753_writeable function Charles Keepax
  1 sibling, 0 replies; 6+ messages in thread
From: Mark Brown @ 2015-08-05 12:30 UTC (permalink / raw)
  To: Axel Lin, Mark Brown; +Cc: alsa-devel

The patch

   ASoC: wm8753: Drop wm8753_writeable function

has been applied to the asoc tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From b970499878563437a43eab2dd2faa9217142fb98 Mon Sep 17 00:00:00 2001
From: Axel Lin <axel.lin@ingics.com>
Date: Sat, 1 Aug 2015 10:04:52 +0800
Subject: [PATCH] ASoC: wm8753: Drop wm8753_writeable function

When .max_register is set and .writeable_reg is not implement, registers
between 0 and .max_register are writeable. This is the same as current
implementation of wm8753_writeable(), so just drop implementation for
.writeable_reg callback.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wm8753.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c
index feb2997a..4c6eaeb 100644
--- a/sound/soc/codecs/wm8753.c
+++ b/sound/soc/codecs/wm8753.c
@@ -138,11 +138,6 @@ static bool wm8753_volatile(struct device *dev, unsigned int reg)
 	return reg == WM8753_RESET;
 }
 
-static bool wm8753_writeable(struct device *dev, unsigned int reg)
-{
-	return reg <= WM8753_ADCTL2;
-}
-
 /* codec private data */
 struct wm8753_priv {
 	struct regmap *regmap;
@@ -1510,7 +1505,6 @@ static const struct regmap_config wm8753_regmap = {
 	.val_bits = 9,
 
 	.max_register = WM8753_ADCTL2,
-	.writeable_reg = wm8753_writeable,
 	.volatile_reg = wm8753_volatile,
 
 	.cache_type = REGCACHE_RBTREE,
-- 
2.1.4

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

* Applied "ASoC: wm8731: Drop wm8731_writeable function" to the asoc tree
  2015-08-01  2:03 [PATCH 1/2] ASoC: wm8731: Drop wm8731_writeable function Axel Lin
  2015-08-01  2:04 ` [PATCH 2/2] ASoC: wm8753: Drop wm8753_writeable function Axel Lin
@ 2015-08-05 12:30 ` Mark Brown
  2015-08-06 16:24 ` [PATCH 1/2] ASoC: wm8731: Drop wm8731_writeable function Charles Keepax
  2 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2015-08-05 12:30 UTC (permalink / raw)
  To: Axel Lin, Mark Brown; +Cc: alsa-devel

The patch

   ASoC: wm8731: Drop wm8731_writeable function

has been applied to the asoc tree at

   git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From f611cdd8eb33ac6ca1196319b27b7f7f24ef98a9 Mon Sep 17 00:00:00 2001
From: Axel Lin <axel.lin@ingics.com>
Date: Sat, 1 Aug 2015 10:03:42 +0800
Subject: [PATCH] ASoC: wm8731: Drop wm8731_writeable function

When .max_register is set and .writeable_reg is not implement, registers
between 0 and .max_register are writeable. This is the same as current
implementation of wm8731_writeable(), so just drop implementation for
.writeable_reg callback.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wm8731.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
index 628d50c..6c73d37 100644
--- a/sound/soc/codecs/wm8731.c
+++ b/sound/soc/codecs/wm8731.c
@@ -79,11 +79,6 @@ static bool wm8731_volatile(struct device *dev, unsigned int reg)
 	return reg == WM8731_RESET;
 }
 
-static bool wm8731_writeable(struct device *dev, unsigned int reg)
-{
-	return reg <= WM8731_RESET;
-}
-
 #define wm8731_reset(m)	regmap_write(m, WM8731_RESET, 0)
 
 static const char *wm8731_input_select[] = {"Line In", "Mic"};
@@ -655,7 +650,6 @@ static const struct regmap_config wm8731_regmap = {
 
 	.max_register = WM8731_RESET,
 	.volatile_reg = wm8731_volatile,
-	.writeable_reg = wm8731_writeable,
 
 	.cache_type = REGCACHE_RBTREE,
 	.reg_defaults = wm8731_reg_defaults,
-- 
2.1.4

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

* Re: [PATCH 1/2] ASoC: wm8731: Drop wm8731_writeable function
  2015-08-01  2:03 [PATCH 1/2] ASoC: wm8731: Drop wm8731_writeable function Axel Lin
  2015-08-01  2:04 ` [PATCH 2/2] ASoC: wm8753: Drop wm8753_writeable function Axel Lin
  2015-08-05 12:30 ` Applied "ASoC: wm8731: Drop wm8731_writeable function" to the asoc tree Mark Brown
@ 2015-08-06 16:24 ` Charles Keepax
  2 siblings, 0 replies; 6+ messages in thread
From: Charles Keepax @ 2015-08-06 16:24 UTC (permalink / raw)
  To: Axel Lin; +Cc: alsa-devel, Mark Brown, Liam Girdwood, patches

On Sat, Aug 01, 2015 at 10:03:42AM +0800, Axel Lin wrote:
> When .max_register is set and .writeable_reg is not implement, registers
> between 0 and .max_register are writeable. This is the same as current
> implementation of wm8731_writeable(), so just drop implementation for
> .writeable_reg callback.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---

Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>

Thanks,
Charles

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

* Re: [PATCH 2/2] ASoC: wm8753: Drop wm8753_writeable function
  2015-08-01  2:04 ` [PATCH 2/2] ASoC: wm8753: Drop wm8753_writeable function Axel Lin
  2015-08-05 12:30   ` Applied "ASoC: wm8753: Drop wm8753_writeable function" to the asoc tree Mark Brown
@ 2015-08-06 16:24   ` Charles Keepax
  1 sibling, 0 replies; 6+ messages in thread
From: Charles Keepax @ 2015-08-06 16:24 UTC (permalink / raw)
  To: Axel Lin; +Cc: alsa-devel, Mark Brown, Liam Girdwood, patches

On Sat, Aug 01, 2015 at 10:04:52AM +0800, Axel Lin wrote:
> When .max_register is set and .writeable_reg is not implement, registers
> between 0 and .max_register are writeable. This is the same as current
> implementation of wm8753_writeable(), so just drop implementation for
> .writeable_reg callback.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---

Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>

Thanks,
Charles

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

end of thread, other threads:[~2015-08-06 16:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-01  2:03 [PATCH 1/2] ASoC: wm8731: Drop wm8731_writeable function Axel Lin
2015-08-01  2:04 ` [PATCH 2/2] ASoC: wm8753: Drop wm8753_writeable function Axel Lin
2015-08-05 12:30   ` Applied "ASoC: wm8753: Drop wm8753_writeable function" to the asoc tree Mark Brown
2015-08-06 16:24   ` [PATCH 2/2] ASoC: wm8753: Drop wm8753_writeable function Charles Keepax
2015-08-05 12:30 ` Applied "ASoC: wm8731: Drop wm8731_writeable function" to the asoc tree Mark Brown
2015-08-06 16:24 ` [PATCH 1/2] ASoC: wm8731: Drop wm8731_writeable function Charles Keepax

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.