diff mbox

ASoC: DAPM: Allow update_bits use 32 bits reg

Message ID 1397736776-7569-1-git-send-email-bardliao@realtek.com (mailing list archive)
State Accepted
Commit 3477501274b79a904a4195b675bb74caa57d2e14
Headers show

Commit Message

Bard Liao April 17, 2014, 12:12 p.m. UTC
From: Bard Liao <bardliao@realtek.com>

This patch change reg's type from unsigned short to int.

Signed-off-by: Bard Liao <bardliao@realtek.com>
---
 sound/soc/soc-dapm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown April 18, 2014, 2:53 p.m. UTC | #1
On Thu, Apr 17, 2014 at 08:12:56PM +0800, bardliao@realtek.com wrote:
> From: Bard Liao <bardliao@realtek.com>
> 
> This patch change reg's type from unsigned short to int.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index c8a780d..f4ba7b4 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -426,7 +426,7 @@  static void soc_dapm_async_complete(struct snd_soc_dapm_context *dapm)
 }
 
 static int soc_widget_update_bits_locked(struct snd_soc_dapm_widget *w,
-	unsigned short reg, unsigned int mask, unsigned int value)
+	int reg, unsigned int mask, unsigned int value)
 {
 	bool change;
 	unsigned int old, new;