Re: [PATCH 05/10] saa7134: protect the ir user count

2010-11-22 Thread David Härdeman
On Mon, Nov 22, 2010 at 02:55:42PM -0200, Mauro Carvalho Chehab wrote: >Em 19-11-2010 21:43, David Härdeman escreveu: >> The use of the saa7134_card_ir->users seems racy, so protect the count with >> a spinlock. Also use proper data types as arguments to __saa7134_ir_start() >> and __saa7134_ir_sto

Re: [PATCH 05/10] saa7134: protect the ir user count

2010-11-22 Thread Mauro Carvalho Chehab
Em 19-11-2010 21:43, David Härdeman escreveu: > The use of the saa7134_card_ir->users seems racy, so protect the count with > a spinlock. Also use proper data types as arguments to __saa7134_ir_start() > and __saa7134_ir_stop() to remove some unnecessary casts. Hmm... instead of using a spinlock,

[PATCH 05/10] saa7134: protect the ir user count

2010-11-19 Thread David Härdeman
The use of the saa7134_card_ir->users seems racy, so protect the count with a spinlock. Also use proper data types as arguments to __saa7134_ir_start() and __saa7134_ir_stop() to remove some unnecessary casts. Signed-off-by: David Härdeman --- drivers/media/video/saa7134/saa7134-input.c | 54 +