5 Sep
2007
5 Sep
'07
9:11 p.m.
On 09/05/2007 07:09 PM, Krzysztof Helt wrote:
From: Krzysztof Helt krzysztof.h1@wp.pl
This patch replaces a common delay loop by a function. It also uses ARRAY_SIZE macro for the rates table.
Signed-off-by: Krzysztof Helt krzysztof.h1@wp.pl
+static void snd_cs4231_wait(struct snd_cs4231 *chip) { int timeout;
unsigned char tmp;
for (timeout = 250; timeout > 0 && (cs4231_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); timeout--) udelay(100);
+}
Like the inb() pulled out into the body of the for as you did for ad1848 a bit better, but otherwise:
Acked-by: Rene Herman rene.herman@gmail.com