]> git.baikalelectronics.ru Git - kernel.git/commit
[media] Don't test for ops->info.type inside drivers
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 5 Jan 2012 01:10:19 +0000 (23:10 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 5 Jan 2012 01:10:19 +0000 (23:10 -0200)
commit5a87367499a315048e5e687a50ae7d0da0d2b008
treea8f664e24e0b070f1ab00f6c1d718ead5d582a21
parenta1733eaf3920e7adffc9ad1ca5232365ea509196
[media] Don't test for ops->info.type inside drivers

Now, ops->info.type is handled inside the dvb_frontend
core, only for DVBv3 calls, and according with the
delivery system. So, drivers should not care or use it,
otherwise, it may have issues with DVBv5 calls.

The drivers that were still using it were detected via
this small temporary hack:

--- a/include/linux/dvb/frontend.h
+++ b/include/linux/dvb/frontend.h
@@ -29,13 +29,16 @@
 #include <linux/types.h>

 typedef enum fe_type {
+#if defined(__DVB_CORE__) || !defined (__KERNEL__)
        FE_QPSK,
        FE_QAM,
        FE_OFDM,
        FE_ATSC
+#else
+FE_FOOO
+#endif
 } fe_type_t;

-
 typedef enum fe_caps {
        FE_IS_STUPID                    = 0,
        FE_CAN_INVERSION_AUTO           = 0x1,

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda827x.c
drivers/media/dvb/firewire/firedtv-fe.c
drivers/staging/media/as102/as102_fe.c