]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (9617): tvtime: remove generic_checkmode callback
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Nov 2008 16:55:39 +0000 (13:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 14 Nov 2008 16:24:44 +0000 (14:24 -0200)
commitdd03e970a18f266faf120e47355349d224f64e3f
treeb4cc3088f239eaa60c58826f532505178358a339
parentaf1a9951fc5c89518c25c4d9f2c4b391b2e72b83
V4L/DVB (9617): tvtime: remove generic_checkmode callback

generic_checkmode() were called, via a callback, for some tvaudio chips.
There's just one callback code used on all those boards. So, it makes no
sense on keeping this as a callback.

Since there were some OOPS reported on tvaudio on kerneloops.org, this
patch removes this callback, adding the code at the only place were it
is called: inside chip_tread. A flag were added to indicate the need for
a kernel thread to set stereo mode on cards that needs it.

Using this more direct approach simplifies the code, making it more
robust against human errors.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tvaudio.c