Title: [9070] trunk/sound/soc/soc-cache.c: asoc: soc-cache: use style merged into mainline, and drop local snd_soc_8_16_write change as we dont need it currently
Revision
9070
Author
vapier
Date
2010-08-09 03:58:10 -0400 (Mon, 09 Aug 2010)

Log Message

asoc: soc-cache: use style merged into mainline, and drop local snd_soc_8_16_write change as we dont need it currently

Modified Paths

Diff

Modified: trunk/sound/soc/soc-cache.c (9069 => 9070)


--- trunk/sound/soc/soc-cache.c	2010-08-07 20:49:59 UTC (rev 9069)
+++ trunk/sound/soc/soc-cache.c	2010-08-09 07:58:10 UTC (rev 9070)
@@ -181,11 +181,9 @@
 				     unsigned int reg)
 {
 	u8 *cache = codec->reg_cache;
-
 	reg &= 0xff;
 	if (reg >= codec->reg_cache_size)
 		return -1;
-
 	return cache[reg];
 }
 
@@ -195,7 +193,6 @@
 	u16 *reg_cache = codec->reg_cache;
 	u8 data[3];
 
-	reg &= 0xff;
 	data[0] = reg;
 	data[1] = (value >> 8) & 0xff;
 	data[2] = value & 0xff;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to