aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/si2157_priv.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-11 18:06:36 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-16 08:50:36 -0200
commit8b0a81c73326af2defaa0d8a4494c7def83928bd (patch)
tree7648af35ea6fc5abd01dcac342f5603b03c63e6f /drivers/media/tuners/si2157_priv.h
parent[media] cx231xx: use v4l2 core function to create the MC graph (diff)
downloadlinux-dev-8b0a81c73326af2defaa0d8a4494c7def83928bd.tar.xz
linux-dev-8b0a81c73326af2defaa0d8a4494c7def83928bd.zip
[media] si2157: register as a tuner entity
As this tuner doesn't use the usual subdev interface, we need to register it manually. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/tuners/si2157_priv.h')
-rw-r--r--drivers/media/tuners/si2157_priv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/tuners/si2157_priv.h b/drivers/media/tuners/si2157_priv.h
index ecc463db8f69..589d558d381c 100644
--- a/drivers/media/tuners/si2157_priv.h
+++ b/drivers/media/tuners/si2157_priv.h
@@ -18,6 +18,7 @@
#define SI2157_PRIV_H
#include <linux/firmware.h>
+#include <media/v4l2-mc.h>
#include "si2157.h"
/* state struct */
@@ -31,6 +32,13 @@ struct si2157_dev {
u8 if_port;
u32 if_frequency;
struct delayed_work stat_work;
+
+#if defined(CONFIG_MEDIA_CONTROLLER)
+ struct media_device *mdev;
+ struct media_entity ent;
+ struct media_pad pad[TUNER_NUM_PADS];
+#endif
+
};
#define SI2157_CHIPTYPE_SI2157 0